The 6 Headings in HTML – h1 to h6 tags

In our previous post introduction to html, When I am using the h1 tag, I told you that there are many tags in HTML but h1 is the largest one. So, You think what are the 6 headings in HTML.

So, The headings from h1 to h6 are in descending order. Means, The h2 heading is shorter than h1, h3 is shorter than h2, and in this pattern all the headings. Let’s know What are the headings and I will give you an example to help you to understand about the headings.

The 6 Headings in HTML

Let’s know the headings:
1) <h1> – Heading 1
2) <h2> – Heading 2
3) <h3> – Heading 3
4) <h4> – Heading 4
5) <h5> – Heading 5
6) <h6> – Heading 6

Let’s see example of HTML code and use these headings.

<!DOCTYPE html>
        <title>The 6 Headings in HTML</title>
        <h1>Heading 1</h1>
        <h2>Heading 2</h2>
        <h3>Heading 3</h3>
        <h4>Heading 4</h4>
        <h5>Heading 5</h5>
        <h6>Heading 6</h6>

Let’s see the result of this code.

Result of using the 6 headings in HTML

As you can see above, the result of the code. So, You can see that Heading 1 <h1> is the largest heading, and it is the main heading of any web page.

So, This is about the 6 Headings in HTML. If you like this post, share to your friends. If you have any questions, feel free to ask us at comment below. Subscribe Us to not miss our upcoming posts.

1 Comment

  1. I am not sure where you’re getting your info, but good topic. I needs to spend some time learning much more or understanding more.
    Thanks for excellent info I was looking for this information for my mission.

Leave a Reply

Your email address will not be published. Required fields are marked *