Home / Learn HTML / HTML Headings
HTML Headings
Headings give a page its outline. There are six levels, from h1 (most important) to h6.
Definition
Headings are the titles of your content. HTML has six levels, h1 (most important) to h6 (least important). Browsers make h1 the largest, but the level is about importance and outline, not about size.
Search engines read headings to understand what the page is about, and screen reader users jump from heading to heading to scan the page, like reading the table of contents of a book.
Theory in plain words
What it is
Headings are six levels of titles, h1 for the main title down to h6.
Why we use it
They give the page an outline. Screen reader users jump from heading to heading, and search engines use them to understand topics.
How it works
The browser draws h1 largest by default. The order of levels matters, not their size, so use CSS for size.
Where it is used
- Page and section titles
- Blog posts and documentation
- Landing page sections
Think of headings like chapters and sub chapters in a book.
Size comes from CSS. Choose the level by meaning, not by size.
Rules to follow
- Use one h1 per page. It is the main title.
- Do not skip levels. Go h1, h2, h3 in order.
- Do not use headings only to make text big.
- Search engines use headings to understand your page.
Quick quiz
1. How many h1 should a page have?
One main title per page.
2. h6 is the
h1 is biggest, h6 smallest.
3. Should you use h1 only to make text big?
Headings give meaning, CSS gives size.
Common questions
How many h1 should a page have?
One. One main title per page.
Should you use h1 only to make text big?
No, use CSS. Headings give meaning, CSS gives size.