Heading Tag in html With Example



The Heading Element is used to define Heading in HTML. The Heading Element supports Heading up to level 6. Those are defined by <H1> to <H6> Element respectively.

<h1>--------------</h1> is largest heading tag.

<h6>-------------<h6> is the smallest heading tag

Heading gets their own line on the web page by starting from a new line.

  • Headings are used to highlighting the title and structure of the document. The document title is defined by Mainly H1 Heading.
  • Headings are required to divide the document into sections. The document Structure from the headings becomes readable. Which keeps the reader connected to the content.
  • A webpage is divided into several parts with headings. These parts are given by Title Heading. After reading this, the readers understand the importance of our document.
  • Headings play the most important role in giving instant information to the readers.
  • Search Engines also use HTML Headings to index our content quickly and correctly.

Types of HTML Heading

In HTML Language, 6 types of Headings are provided to properly define Document Structure. Which are mentioned below.

H1 Heading

This is the Main Heading of the HTML Document. And this is also the first important Heading. The title of a blog post or webpage is defined by the heading of the H1 Level. It is advised to use this heading only once in the document. Examples:


H2 Heading

This is the Subheading of the HTML Document. This is done after Use Main Heading. Sub-title is given to the document from H2 Heading. Examples:



H3 Heading

This is called Sub-sub-heading. And it is also known as Minor Heading. This is used to give a more in-depth title in Use Document. Examples:


h4 Heading

This is called 4th Level Heading. The document is divided into Deep Sections from this Heading. It is used to divide a large topic into smaller sections. Examples:


H5 Heading

5th Level Heading is helpful in further deepening the content. It is defined with H5 Element. Examples:


H6 Heading

6th Level Heading is also helpful in Divide the content more deeply. This is the lowest Importance Heading. It is defined by the H6 Element. Examples:



Why Headings Tags Are Important?

  • The use of heading tags divides your content into sections. So that the content is easy to understand by both readers and search engines.
  • Heading tag ghost is necessary for a good appearance.
  • Applied in a proper way. Heading tags also affect your blog post's ranking in the search engine.
  • By the way, Heading tags are HTML elements (HTML elements in Hindi) in a way. Because of this, its importance increases more.
  • In each of its headings. Make sure to use keywords related to your content.