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 { margin: 10px 20px; } | Ah1 { margin-top: 0; margin-bottom: 24px; } | |
| 2div { width: 800px; margin: 0 auto; } | BCSS declarations require a colon — it should be margin: 10px; not margin 10px; | |
| 3Margin adds space outside the border — it separates elements from each other | CSets 10px margin on top and bottom, 20px on left and right — the 2-value shorthand | |
| 4Individual side properties let you set margin on one side without affecting others | DHorizontally centres the div — auto splits the remaining horizontal space equally on both sides | |
| 5p { margin 10px; } | Ep { margin: 20px; } | |
| 6div { margin: 10px, 20px; } | FMargin shorthand values must be separated by spaces, not commas — write margin: 10px 20px |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
margin — A CSS property that adds space outside an element's border, between it and surrounding elements. Unlike padding, margin is outside the element's background.p { margin: 10px; }div { margin-top: 20px; }div { margin: 0 auto; }a { margin-left: 12px; }p { margin: 10px 20px; }