div
I. Description
The HTML div element is a generic container element. It does not confer meaning to it's contents nor does it style them in any way. Use the div element to contain other HTML elements and provide structure to a webpage.
The div element is probably one of the most used HTML elements, if not the most used HTML element.
II. Examples
<!DOCTYPE html>
<html>
<head>
<title>div Example Page</title>
</head>
<body>
<div>
<nav>
<a href="#temperature">Temp High / Low</a>
<a href="#humidity">Humidity</a>
<a href="#sunrise_sunset">Sunrise / Sunset</a>
</nav>
</div>
<div>
<h1>Weather Report</h1>
<h2>Wednesday March 12, 2025</h2>
<p>
The weather today will be clear with scattered clouds in the afternoon.
The afternoon high will be 71 degrees fahrenheit, the overnight low will
be 48 degrees fahrenheit.
</p>
<footer>
<a href="/legal/terms_and_conditions">Terms and Conditions</a>
<a href="/legal/privacy_policy">Privacy Policy</a>
</footer>
</div>
<div>
<aside>
<h4>Weather Reports For Nearby Cities</h4>
<a href="/weather/ohio/cincinnati">Cincinnati, Ohio</a>
<a href="/weather/new_york/buffalo">Buffalo, New York</a>
<a href="/weather/indiana/indianapolis">Indianapolis, Indiana</a>
</aside>
</div>
</body>
</html>