<htmlstart/>

Headings

HTML provides six levels of headings, h1 through h6.

HTML Headings

HTML has 6 heading levels. h1 is the most important, h6 the least.

<h1>Heading 1 — Page title</h1>
<h2>Heading 2 — Section title</h2>
<h3>Heading 3 — Subsection</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6 — Smallest heading</h6>

SEO & Accessibility Rules

  • Use only one h1 per page — it is your page title.
  • Do not skip levels (e.g. don't go h1 → h3).
  • Use headings for structure, not for visual size (use CSS for size).
Search engines use your h1 to understand what the page is about. Make it descriptive.
🧩

Test Yourself

4 questions
Q1.Which heading tag produces the largest text by default?
Q2.How many heading levels does HTML have?
Q3.How many <h1> tags should a page ideally have?
Q4.Correct heading order goes h1 → h2 → h3. Why?