Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Text styling worksheet is part of the HTML and CSS Journey journey. Print it as a booklet?
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 | |
|---|---|---|
| 1text-align: center; | ADraws a line under the text | |
| 2text-decoration: underline; | BCentres the text inside its container | |
| 3text-transform: capitalize; | Cmiddle is not a valid value, so it should be center | |
| 4The space between lines of text | DMisspelt property: CSS uses color, not colour | |
| 5text-align: middle; | EMakes the first letter of every word a capital | |
| 6text-colour: red; | Fline-height: 1.5; |
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 their container: left, right, center or justify.p {
text-align: center;
}a {
text-decoration: none;
}h2 {
text-transform: uppercase;
}p {
line-height: 1.5;
}h1 {
letter-spacing: 2px;
}