HTML Heading

  • Html headings are an important part in a HTML structure.
  • There ar six heading tags in HTML. They are h1, h2, h3, h4, h5 and h6.
  • These tags are used to define the headings of a webpage.
  • The h1 tag is the most important heading tag usually the largest heading tag. Sequentially h6 is the lowest important heading tag usually the smallest tag.

Example:

<h1> This is Heading 1. </h1>
<h2> This is Heading 2. </h2>
<h3> This is Heading 3. </h3>
<h4> This is Heading 4. </h4>
<h5> This is Heading 5. </h5>
<h6> This is Heading 6. </h6>

Run Example

Most of the websites are not using the tags after <h4>. The tags after <h4> are virtually less important. It is a pratical rule to use the <h1> tag only once in a page to mark the most important part.
Heading tags are important for SEO because when the search engine evaluating a page, it gives extra weight to the headings depended on the importance og the tag.