<h1>: The HTML Level 1 Header Element
1 Description
The HTML <h1>
element contains the main
title for a webpage. There should only be one <h1>
element on each webpage.
There are six different levels of headings which may appear
on a webpage; the six different heading levels are (from most
important to least important) <h1>
, <h2>
,
<h3>
, <h4>
, <h5>
, and
<h6>
.
There may be multiple instances of <h2>
,
<h3>
, <h4>
, <h5>
, and
<h6>
on a webpage.
Heading levels should not be skipped. Meaning that if there is
at least one <h1>
element and one <h3>
element there should be at least one <h2>
element
between them. Omitting a heading level (eg, going from
<h2>
to <h5>
with no heading levels
in between) is considered to be improper.
2 Examples
<!DOCTYPE html>
<html>
<head>
<title>Example Page</title>
</head>
<body>
<h1>3 Day Weather Forcast</h1>
<article>
<h2>Monday, March 17th 2025</h2>
<section>
<h3>Morning</h3>
<p>
Sunny with clear skies, wind NNE at 1-2mph
with gusts up to 5mph.
</p>
<p>
6:00AM Temperature is 45 degrees Fahrenheit,
rising to 58 degrees Fahrenheit by 12:00PM.
</p>
</section>
<section>
<h3>Afternoon</h3>
<p>
Clouds forming in the afternoon. The temperature
is expected to reach 61 degrees Fahrenheit by
6:00PM.
</p>
</section>
<section>
<h3>Evening/Night</h3>
<p>
Cool in the evening, clear skies with wind blowing
N at 3-4mph. Overnight low is expected to be 41
degrees Fahrenheit.
</p>
</section>
</article>
<article>
<h2>Tuesday, March 18th 2025</h2>
<section>
<h3>Morning</h3>
<p>
Cloudy with a chance of rain between 10:00AM and
12:00PM.
</p>
<p>
6:00AM temperature is expected to be 42 degrees
Fahrenheit rising to 62 degrees by 12:00PM.
</p>
</section>
<section>
<h3>Afternoon</h3>
<p>
Clear skies in the afternoon, high around 75 degrees
Fahrenheit.
</p>
</section>
<section>
<h3>Evening/Night</h3>
<p>
Clear and cold night, low around 46 degrees Fahrenheit.
</p>
</section>
</article>
<article>
<h2>Wednesday, March 19th 2025</h2>
<section>
<h3>Morning</h3>
<p>
Rain, mainly after 10:00AM. High near 52 degrees
Fahrenheit. Calm wind SSW 5 to 6 mph.
</p>
</section>
<section>
<h3>Afternoon</h3>
<p>
100% chance of rain after 12:00PM. High near 55 degrees
Fahrenheit. Wind SW 6 to 7 mph.
</p>
</section>
<section>
<h3>Evening/Night</h3>
<p>
Rain in the evening and through the night, low near 41
degrees Fahrenheit.
</p>
</section>
</article>
</body>
</html>
This document was last updated: