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:
<h1> – Heading 1
<h2> – Heading 2
<h3> – Heading 3
<h4> – Heading 4
<h5> – Heading 5
<h6> – Heading 6
Let’s see example of HTML code and use these headings.
<!DOCTYPE html> <html> <head> <title>The 6 Headings in HTML</title> </head> <body> <h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6> </body> </html>
Let’s see the result of this code.
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.