Q: What is the CSS box model?

A: CSS box model - A model that is used for a layout or a design which all HTML define as boxes or box.

Q: What is the difference between margin and padding?

A: Margins clear the area outside borders, while paddings are outside the content, yet both are translucent/transparent.

Q: How is an HTML element height and width determined?

A:width+left padding+left border+right border+left margin+right margin / height+top padding+bottom padding+top border+bottom border+top margin+bottom margin.

Q: Explain this CSS property: padding:25px 50px;

A:Top and bottom are 25px while both left and right are 50px.


Q: What is the difference between a border and an outline?

A:Border go around content while an outline goes around the border(s)