HTML/HTML Basics

HTML Headings

Updated on January 6, 2026
1 min read

What are HTML Headings? h1 to h6

HTML headings are used to show titles and subtitles on a web page. They help users and browsers understand important content.

HTML has 6 heading tags:

<h1> to <h6>

Heading Levels (Big to Small)

TagSizeUse
<h1>BiggestMain heading
<h2>LargeSection heading
<h3>MediumSub-section
<h4>SmallLess important
<h5>SmallerMinor heading
<h6>SmallestLeast important

Example

<h1>Main Title</h1>
<h2>Chapter</h2>
<h3>Topic</h3>
<h4>Point</h4>
<h5>Sub point</h5>
<h6>Note</h6>

Why Headings are Important?

  1. Make content easy to read
  2. Help SEO (Search Engines)
  3. Organize webpage content
  4. Improve user experience

Important Rules 

  • Use only one <h1> per page
  • Do not use headings only for size
  • Use them in order

One Line Remember 

Headings give structure and importance to content

HTML Headings | HTML | Learn Syntax