NIELIT O Level Exam

Which of the following is true about the CSS box model?

Which of the following is true about the CSS box model?

CSS बॉक्स मॉडल के बारे में इनमें से कौन-सी बात सही है?

A. It consists of Margin, Padding, Border, Content

B. It consists of Padding, Border, Shadow

C. It consists of Content, Outline, Shadow

D. It consists of Border, Margin, Shadow




Correct Answer is :

A. It consists of Margin, Padding, Border, Content



Explanation
The CSS Box Model describes how every HTML element is represented as a rectangular box. It consists of the following four parts (from inside to outside):

Content – The actual text, image, or other content inside the element.
Padding – Space between the content and the border.
Border – The border surrounding the padding and content.
Margin – The outermost space outside the border, separating the element from other elements.

Order of the CSS Box Model:

Margin
 └── Border
      └── Padding
           └── Content
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad