Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This CSS rule syntax 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 | |
|---|---|---|
| 1p | Ablue | |
| 2color | BRound brackets used where curly braces are needed | |
| 3The setting given to the property | CThe property: names the thing about the element to change | |
| 4Wrap the declarations of one rule | DThe selector: chooses which elements the rule applies to | |
| 5color blue; | EThe colon between property and value is missing | |
| 6p ( color: red; ) | F{ } |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
selector { property: value; } — A CSS rule: the selector picks the elements, and each property: value; pair inside the curly braces styles them.h1 {
color: red;
}p {
color: blue;
}p {
color: blue;
margin: 0;
}body {
margin: 0;
}a {
color: green;
font-size: 18px;
}