Menu
The div
tag, or Content Division element, specifies a division or section in a document.
Any type of content can be used inside the <div>
tag. It is then styled easily with CSS by utilizing the class or id attribute.
<div class="divExample">
<h1>This is a title.</h1>
<p>This is some additional content.</p>
</div>
User-submitted codepen.io examples of <div>
↴
Submit a codepen.io link that demonstrates <div>
: