Boxes inside Boxes

Div tags are essentially boxes that you can put things in. The process of putting something in a box in HTML is called nesting. Here, each div has a different background color which shows where each box (or div) is. To view an animation of creating the divs, click here. Use the code editor above and the play button to create your own divs. A list of usable classes are below. Don't worry if you don't know what these are.

Possible Classes