Work in progress

Learn Box Model

Every HTML element is a box. Every HTML element is a box. Every HTML element is a box.

No, seriously, every HTML element is a box.

Each box has content, which can have height and width.

You can squeeze the content inside the box by adding padding.

You can add a border around the outside of the content and padding.

You can create additional invisible space around the border with margin.

This is the box model.

Back Next: Layout