HTMLHTML10 min read

HTML Headings

Use h1 to h6 for titles and sections, correctly for SEO and readability.

David Miller
November 27, 2025
4.9k202

Headings are used for titles.

Example

<h1>Main Title</h1>
<h2>Section Title</h2>
<h3>Small Title</h3>

Preview

Main Title
Section Title
Small Title

Best practice

  • Use only one h1 for the page main topic
  • Use h2 for sections
  • Use h3 for sub-sections
#HTML#Beginner