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 | |
|---|---|---|
| 1border: 2px solid black | AWrong order — border shorthand must be width first, then style, then color | |
| 2border-top: 1px dashed red | Bborder-style: dotted | |
| 3Sets the line style of all four borders at once | Ccolour is not valid CSS — the correct spelling is border-color (American English) | |
| 4Controls only the thickness of a border | DAdds a dashed red border only to the top edge of an element | |
| 5border: solid 2px blue | EAdds a 2-pixel solid black line around all four sides of an element | |
| 6border-colour: red | Fborder-width: 4px |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
border — A CSS shorthand property that sets a visible line around an element by specifying width, style, and color in one declaration, e.g. border: 2px solid blackp {
border: 2px solid red;
}div {
border-color: blue;
}.box {
border-width: 3px;
}p {
border: 1px dashed black;
}h2 {
border-style: dotted;
}