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#hero { color: red; } | AForces this declaration to override all other rules, including IDs | |
| 2color: blue !important; | B!important is misspelled — the browser ignores the keyword | |
| 3Cascade source order tiebreaker | Cp { color: black; } p { color: red; } | |
| 4Class selector specificity beats element selector | DID selector — highest specificity among selectors | |
| 5p { color: black } | EMissing semicolon after the declaration value | |
| 6.box { color: red !importent; } | F.note { color: green; } |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
specificity — A score that determines which CSS rule wins when multiple rules target the same element; higher score beats lowerp { color: red; }#nav { color: blue; }.intro { color: green; }h1, p { font-size: 16px; }body { color: black !important; }