Now that we know about HTML element nesting and parent/child relationships, let's see another way these concepts are applied on a real-life webpage.
Div elements divide your page by enclosing other elements. These enclosed groups of elements can then be organized, moved and styled independently from one another.
Div elements are often used with the class attribute. Here's an example:
... indicates where other HTML elements would normally be enclosed by the
Below, we will use divs to divide our page into three separate parts.