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.warning | Aclass="card" | |
| 2p.note | Bclass="card featured" | |
| 3Reusable across many elements on the page | CSelects every element whose class attribute includes the value warning | |
| 4Applying multiple classes to one element | DTargets only p elements that also carry the class note | |
| 5class=".highlight" | EThe dot belongs in the CSS selector, not in the HTML class attribute value | |
| 6highlight { color: red; } | FMissing the leading dot — without it this is a type selector, not a class selector |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
.classname — A CSS selector that targets every element whose class attribute matches classname, written with a leading dot.highlight {
color: red;
}<p class="notice">Hello</p>p.warning {
font-size: 14px;
}.active {
border: 1px solid;
}<div class="card primary">