Lab 4: The Box Model and Questions

What is the CSS box model?

The CSS box model is the idea that every item has its own box surrounding it, which contains its own height and width.

What is the difference between margin and padding?

Margin will set space outside the box while padding will set space inside the box.

How is an HTML elemet height and width determined?

If not specificly stated then the width and height will be determined by the amound of pixels on the page.

Explain this CSS property: padding 25px 50px.

The first number 25px refers to the width and the second number 50px refers to the height

What is the difference between a border and an outline?

Outlines are outside the item in the box while borders are in the item.