Lesson 6 of 10

◤ The Box Model

🎯 Grades 6–8 ⏱ ~30 minutes 💚 Intermediate

What You'll Learn

  • Every HTML element is a box: content, padding, border, margin
  • How to control spacing with padding and margin
  • The difference between box-sizing: content-box and border-box
Quick Check

1. In the box model, what is padding?

ASpace outside the border
BSpace between the content and the border
CThe visible outline of the element

2. What does margin do?

AAdds space inside the element
BPushes other elements away from the outside of the box
CAdds a visible border

3. With box-sizing: border-box, does padding increase the element's total width?

AYes, always
BNo — padding is included within the declared width
COnly if border is also set

4. What is the order of box model layers from inside to outside?

AMargin → Border → Padding → Content
BContent → Padding → Border → Margin
CContent → Border → Padding → Margin