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 | |
|---|---|---|
| 1div { width: 800px; max-width: 100%; } | ACSS property names must be lowercase — 'Width' should be written as 'width' | |
| 2img { max-width: 100%; } | BPrevents the image from exceeding its container — it can be its natural size or smaller but never wider | |
| 3min-height prevents an element from being shorter than the specified value | CFixed 800px wide on large screens, but shrinks to fit its container on smaller screens — responsive sizing | |
| 4% widths are relative to the parent element's width, not the viewport | D'widht' is a typo — the correct CSS property name is 'width' | |
| 5p { widht: 200px; } | Ep { width: 100%; } | |
| 6div { Width: 300px; } | Fsection { min-height: 50vh; } |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
max-width — A CSS property that sets the maximum width an element is allowed to reach. The element can be smaller but never wider. Useful for responsive layouts.div { width: 300px; }div { height: 200px; }img { max-width: 100%; }section { min-height: 50vh; }p { min-width: 200px; }