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="note">Remember this.</p> | AAttribute names must be lowercase - CLASS should be class | |
| 2<li class="item">One</li> <li class="item">Two</li> | BAssigns the CSS class 'note' to this paragraph - any element with class="note" can be styled with .note { } | |
| 3class values can be reused across many elements for shared CSS styling | C<button class="btn primary">Go</button> | |
| 4Multiple classes are applied with space-separated values inside one class attribute | DA space creates two class names, not one. Use a hyphen for a single multi-word class: class="my-note" | |
| 5<p CLASS="note">Text.</p> | E<p class="lead">Intro.</p> <p class="lead">More.</p> | |
| 6<p class="my note">Text.</p> | FMultiple elements sharing the same class - both receive identical CSS styling from .item { } |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
class — An HTML attribute that assigns CSS class names to an element. The same class can be reused on many elements for shared styling.<p class="intro">Hello</p><h1 class="title">Welcome</h1><div class="card">Content here.</div><span class="highlight">key term</span><button class="btn">Click me</button>