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 { display: none; } | Anav { display: flex; } | |
| 2a { display: inline-block; width: 120px; padding: 8px; } | Bp { display: block; } | |
| 3display: block makes an element start on a new line and fill the available width | Cinline-block must be hyphenated — write display: inline-block; not display: inline block; with a space | |
| 4display: flex turns a container into a flexbox layout for its direct children | DFlows inline with text but accepts width, height and padding like a block element — used for buttons and styled links | |
| 5div { display: inline block; } | ECSS property names must be lowercase — 'Display' should be written as 'display' | |
| 6span { Display: inline; } | FHides the element completely and removes it from the layout — no space is left where it was |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
display — A CSS property that controls how an element participates in layout. Common values: block, inline, inline-block, none and flex.p { display: block; }span { display: inline; }div { display: none; }a { display: inline-block; }nav { display: flex; }