Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1<!-- This is a comment --> | AThe opening marker needs two hyphens: <!-- not <!- | |
| 2<!-- <p>Old text</p> --> | BWrapping HTML in a comment hides it from the page without deleting it from the source code | |
| 3An HTML comment opens with <!-- and closes with --> | C<!-- TODO: add nav --> | |
| 4Comments are visible in the page source but not in the browser window | D<h1>Title</h1> <!-- section break --> <p>Text</p> | |
| 5<!- This is a comment --> | EEvery comment must be closed with --> - an unclosed comment will hide all following HTML | |
| 6<!-- unclosed comment <p>Text</p> | FText between <!-- and --> is ignored by the browser and never shown on the page |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<!-- --> — An HTML comment - text placed between <!-- and --> is ignored by the browser and never shown on the page.<body>
<!-- This is a comment -->
</body><body>
<!-- This is a comment -->
</body><body>
<!-- Navigation -->
<h1>Home</h1>
</body><body>
<!-- <p>Draft text</p> -->
<p>Live text</p>
</body><body>
<!-- TODO: add image -->
<p>Content</p>
</body>