Explain divs


#1

can someone explain the reason for using divs please?


#2

A div, or division, is a way to divide (see the "div" part, there?) HTML markup into sections. As you progress further, and perhaps work through the CSS course, they will be put to more use.

When using div, you are able to, as previously stated, divide your code but also style said divisions with different rules.

In the most basic terms, a div is a way to divide your markup. That's all! :smile: