agyanadda@gmail.com

HTML Headings

HTML Text & Links 1 min read Updated Nov 30, 2026 Topic 12 of 33

Example

Example — All six headings HTML
<h1>Heading 1 — page title</h1>
<h2>Heading 2 — main section</h2>
<h3>Heading 3 — sub-section</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>

Use only one h1 per page and keep the order (h2 inside h1, h3 inside h2).

Try it Now »

Test Yourself With Exercises

Exercise 1 Multiple Choice

Which heading is the most important?

Exercise 2 True / False

You should use headings just to make text bigger.

Exercise 3 Fill in the Blank

HTML has ___ levels of headings.

Frequently Asked Questions

One. It should describe what the page is about — this also helps SEO.