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 { font-size: 2rem; } | Adiv { border-width: 2px; } | |
| 2section { height: 100vh; } | BSets the section to the full height of the browser viewport — useful for full-screen sections | |
| 3em multiplies the current element's font size — 1.5em on a 20px element = 30px | Cp { padding: 1.5em; } | |
| 4px is an absolute unit — the size is fixed regardless of the user's settings or parent element | DA number without a unit is invalid CSS — write font-size: 16px; (zero is the only exception) | |
| 5p { font-size: 16; } | ESets the heading to twice the root font size — if html is 16px, this equals 32px regardless of nesting | |
| 6h1 { font-size: 2 rem; } | FThere must be no space between the number and its unit — write font-size: 2rem; not 2 rem; |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
rem — A CSS relative unit. 1rem equals the root element's (html) font size. Unlike em, rem is not affected by nesting — it is consistent throughout the page.p { font-size: 16px; }p { font-size: 1.5em; }h1 { font-size: 2rem; }div { width: 50vw; }section { height: 100vh; }