HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML h1 h6 Tags

HTML h2 - h6 Tags

 

 

The h2 to h6 tags are used to define HTML headings. The h2 tag defines the most important heading while the h6 tag defines the least important heading. For better SEO, we have to only use h2 once per page.

 

Heading Levels

 

  • < h1 >
  • < h2 >
  • < h3 >
  • < h4 >
  • < h5 >
  • < h6 >

 

Explanation:-

 

  • h1 is defined as the most important heading. Google also considers it essential and it is therefore a factor in SEO (Search Engine Optimization). It has the largest font size.
  • h2 is the second most important heading. It is basically used for improving the overall structure of the webpage. It has the second-largest font size.
  • h3 is the third most important heading and it helps in improving the overall structure of the webpage. It has the third-largest font size.
  • h4 is the fourth most important heading and it helps in improving the overall structure of the webpage. It has the fourth-largest font size.
  • h5 is the fifth most important heading and it helps in improving the overall structure of the webpage. It has the fifth-largest font size.
  • h6 is the sixth most important heading and it helps in improving the overall structure of the webpage. It has the smallest font size as compared to the rest of the headings.

Code Explanation

All Tutorials related to HTML Tags List

All Sections related to HTML