The following example demonstrates Heading Tags in HTML. Basically, there are six heading tags available in HTML, each varying in font size. These tags are h1, h2, h3, h4, h5, and h6. While, the h6 tag has the smallest font-size, the h1 is largest.

HeadingTagsExample.html

<html>
  <head>
    <title>Heading Tags Example</title>
  </head>
  <body>
     <h1>First Heading</h1>
     <h2>Second Heading</h2>
     <h3>Third Heading</h3>
     <h4>Fourth Heading</h4>
     <h5>Fifth Heading</h5>
     <h6>Sixth Heading</h6>
  </body>
</html>

Output

Example of Heading Tags in HTML
Example of Heading Tags in HTML