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 { text-align: center; } | Atext-align: left; | |
| 2p { text-align: right; } | BLines up the text of every paragraph against the right edge | |
| 3Left alignment lines the text up against the left edge of its element | CA colon is needed between the property and its value, not an equals sign. | |
| 4text-align styles the text inside an element, so it is written in the rule for that element | Dh2 { text-align: center; } | |
| 5h1 { text-align: centre; } | ECSS uses the American spelling center. The value centre is not valid, so the heading stays aligned left. | |
| 6h1 { text-align = center; } | FCentres the text of every h1 heading in the middle of its line |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
text-align — A CSS property that sets how lines of text line up inside an element: left, center or right. Example: text-align: center; centres a heading's text. It styles the text, not the box.h1 { text-align: center; }h1 { text-align: center; }p {
text-align: left;
}h2 { text-align: right; }.date {
text-align: right;
}