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<p class="intro">Welcome</p> | AAttribute values must be in double quotes - class="intro" not class=intro | |
| 2<a href="about.html">About</a> | B<h1 id="main-title">Welcome</h1> | |
| 3An attribute is written as name="value" inside the opening tag | CAttributes must go in the opening tag only - never in the closing tag | |
| 4Multiple attributes on one element are separated by spaces | DThe class attribute assigns a CSS class name to the element - used to style multiple elements together | |
| 5<p class=intro>Text</p> | EThe href attribute on an anchor element specifies the URL the link goes to when clicked | |
| 6<p>Text</p class="footer"> | F<p class="note" id="p1" style="color: red;">Text</p> |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
attribute — Extra information added to an HTML opening tag as a name="value" pair, such as class="header" or href="page.html".<p class="intro">Hello</p><a href="contact.html">Contact</a><h2 id="section-one">Introduction</h2><img src="photo.jpg" alt="A cat sitting"><p style="color: blue;">Blue text.</p>