HTML Headings
Learn how to use HTML headings h1 through h6.
HTML headings are defined with the <h1> to <h6> tags. <h1> is the most important, <h6> the least.
Try It — All Six Headings
Preview
Why Headings Matter
- Search engines use headings to index your page content
- Screen readers use them for navigation
- Use
<h1>for the main title — only one per page
| Tag | Size | Use For |
|---|---|---|
<h1> | Largest | Page title |
<h2> | Large | Main sections |
<h3> | Medium | Sub-sections |
<h4>–<h6> | Smaller | Nested content |
Tip: Don’t skip heading levels (e.g., jump from
<h1>straight to<h4>). Keep a logical order for accessibility and SEO.