Class 10 Computer Science Ch 3: Cascading Style Sheets (CSS3) & Styling

CSS Box Model & Styling Selectors

The CSS Box Model Explained

Every HTML element on a web page is rendered as a rectangular box comprising four concentric layers:

  1. Content: The innermost area where text and images appear.
  2. Padding: Transparent area clearing space immediately around the content (inside the border).
  3. Border: A visible boundary enclosing the padding and content.
  4. Margin: Transparent space outside the border that separates this element from adjacent elements.

Practice Questions (1)

View All Chapter Q&A
Fill in the Blanks (1)
Q1
In the CSS Box Model, the transparent space immediately between the content and the border is known as _________.
Answer: Padding Padding clears an area around the content within the border of an element.
Current Chapter
Cascading Style Sheets (CSS3) & Styling

We use essential cookies to maintain secure sessions and prevent CSRF attacks. With your consent, we and our authorized partner (Google AdSense) also use cookies to serve relevant educational advertisements and evaluate traffic. Learn more in our Cookie Policy and Privacy Policy.