HTML Div Element

The <div> element is used as a container for other HTML elements.

The <div> Element

The <div> element is by default a block element, meaning that it takes all available width, and comes with line breaks before and after.

A <div> element takes up all available width:

Lorem Ipsum <div>I am a div</div> dolor sit amet.

Continue reading HTML Div Element