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 | |
|---|---|---|
| 1h1 { color: red; } | ARound brackets are used instead of curly braces. The declaration block must sit inside { }. | |
| 2/* make text bigger */ | Bp { color: blue; font-size: 18px; } | |
| 3One rule can hold several declarations, each ending with a semicolon inside the same curly braces. | CA CSS rule: the selector h1 picks every main heading, and the declaration inside the braces turns its text red. | |
| 4A declaration is a property, a colon, a value and a semicolon. | DA CSS comment: the browser ignores it, so it is a note for people reading the stylesheet. | |
| 5p { color blue; } | EThe colon is missing between the property and the value. It should be color: blue; | |
| 6p ( color: blue; ) | Fbackground-color: yellow; |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
p { color: blue; } — A CSS rule: a selector (p) picks elements, then { } hold declarations. Each declaration is property, colon, value, semicolon, so all paragraphs get blue text.p { color: blue; }p { color: blue; }p { color: blue; }h1 {
color: red;
font-size: 24px;
}/* Paragraph style */
p { color: blue; }