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 | |
|---|---|---|
| 1p { color: #ff0000; } | ASets the text colour to pure red using a 6-digit hex code — ff=max red, 00=no green, 00=no blue | |
| 2div { background-color: rgba(0, 0, 0, 0.5); } | Ba { color: steelblue; background-color: lightyellow; } | |
| 3hsl(hue, saturation%, lightness%) — hue is a colour wheel angle 0–360 | CSets the background to black at 50% opacity — the 4th rgba value (0.5) controls transparency | |
| 4Named colour keywords like 'red', 'navy' and 'coral' are valid CSS colour values | DHex colour values only use digits 0–9 and letters A–F — G, H and I are not valid hex digits | |
| 5p { color: #GGHHII; } | Eh1 { color: hsl(240, 100%, 50%); } | |
| 6h1 { color: rgb(300, 0, 0); } | FEach rgb() channel must be 0–255 — 300 is out of range and the colour will be clamped or invalid |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
#rrggbb — A CSS hex colour code. Six hexadecimal digits (0–9 and A–F) define red, green and blue channels. Shorthand: #rgb uses one digit per channel.p { color: red; }h1 { color: #ff0000; }p { color: rgb(0, 128, 0); }a { color: hsl(240, 100%, 50%); }div { color: rgba(0, 0, 0, 0.5); }