HTML CSS JavaScript SEO Python Posts Privacy About Contact

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
TagSizeUse For
<h1>LargestPage title
<h2>LargeMain sections
<h3>MediumSub-sections
<h4><h6>SmallerNested content

Tip: Don’t skip heading levels (e.g., jump from <h1> straight to <h4>). Keep a logical order for accessibility and SEO.