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 | |
|---|---|---|
| 1color: navy; | Atext-color is not a CSS property. The text colour property is called color, so it should be color: navy; | |
| 2background-color: #ffeb3b; | Bp { background-color: #222222; color: white; } | |
| 3To make the text of a heading dark blue, use the color property with a colour name. | CSets the colour behind the text to yellow, using a hex value. | |
| 4To give a paragraph a dark background with light text that is easy to read, set both properties to colours with strong contrast. | Dh1 { color: navy; } | |
| 5p { text-color: navy; } | ESets the text colour of an element to navy, using a colour name. | |
| 6body { background-color: #fff; color: #fff; } | FThe text and background are both white, so the text is invisible. Use a text colour with strong contrast, such as color: #000; |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
color: navy; — The color property sets an element's text colour using a name or hex value. background-color sets the colour behind the text. Choose pairs with enough contrast to read.p { color: navy; }body { background-color: #f0f0f0; }h2 { color: #ff0000; }h1 {
color: white;
background-color: navy;
}.warning {
color: black;
background-color: yellow;
}