Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This The box model 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 | |
|---|---|---|
| 1padding: 20px; | Acontent | |
| 2margin: 10px; | BMisspelled property — should be margin: 10px; | |
| 3The innermost layer — where text and child elements sit | CAdds 10px of space outside the border, separating elements | |
| 4Makes width and height include padding and border | Dbox-sizing: border-box; | |
| 5border 2px solid black; | EMissing colon — should be border: 2px solid black; | |
| 6margn: 10px; | FAdds 20px of space between the content and the border |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
box model — Every HTML element is a box with four layers: content, padding, border, and margin. These layers control the element's size and spacing.div {
padding: 20px;
border: 1px solid gray;
}div {
padding: 20px;
margin: 10px;
}div {
width: 200px;
padding: 10px;
}div {
border: 2px solid black;
margin: 5px;
}div {
box-sizing: border-box;
width: 100px;
}