Q: What is the CSS Box Model?

All HTML elements can be considered as boxes. In CSS, the term "box model" is used when talking about design and layout.

The CSS box model is essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content.

Q: What is the difference betwen margin and padding?

Padding is the space between the content and the border, whereas margin is the space outside the border.

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

An HTML elements height and width are determined by the user defined values for 'height' and 'width'. If you don't set the height yourself, the content of your division determines the height.

Q:Explain this CSS property: padding 25px50px.

Padding 25px50px sets the top and bottom padding to 25px and sets the right and left paddings to 50px.

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

A border adds to the physical dimensions of an element, where as an outline doesnt affect the dimensions of the actual element itself.