HTML · Page structure

h1–h6

Heading levels express document outline. Do not skip levels for visual size; style the heading instead.

Syntax
<h1>…</h1> to <h6>…</h6>

Example

Try it

Notes

One h1 per page is a safe default. Screen readers navigate by heading level.

More in this group

address article aside div footer header hgroup main

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course