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 { padding: 10px 20px; } | Aa { padding-top: 5px; padding-left: 12px; } | |
| 2div { padding: 5px 10px 15px 20px; } | BPadding shorthand values must be separated by spaces, not commas — write padding: 10px 20px | |
| 3Padding adds space inside the border — between the content and the element's edge | Cp { padding: 20px; } | |
| 4Individual side properties let you set padding on one side only | DSets padding clockwise: 5px top, 10px right, 15px bottom, 20px left | |
| 5p { padding: -10px; } | EPadding cannot be negative — use margin for negative spacing, or padding: 0 to remove padding | |
| 6div { padding: 10px, 20px; } | FSets 10px padding on top and bottom, 20px on left and right — the 2-value shorthand |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
padding — A CSS property that adds space inside an element's border, between the content area and the border. Unlike margin, padding is inside the element.p { padding: 10px; }div { padding-top: 20px; }a { padding-left: 12px; }p { padding: 10px 20px; }div { padding-bottom: 0; }