Student-friendly HTML, CSS, and JavaScript reference with examples
A <div> is a container element used to group other elements together. It’s one of the most commonly used HTML elements.
<div>
<h2>Section Title</h2>
<p>Some text here</p>
<button>Click me</button>
</div>
Divs help organize your page into sections. You can style them with CSS or add a class to target specific divs.