Why is the box model concept important?


#1

Question

Why is the box model concept important?

Answer

The box model concept is important because the browser renders each and every element as a rectangle, or box. Each box has a content area - the height and width of the “real” content (like text, images, and videos), padding - the space between the content edge and the border, border - outline that wraps the padding plus the content, and margin - space between the border and the nearest element.