XHTML heading tags used to give headings of different sizes we have 6 headings in xhtml or html which we can use as per our requirements like the main heading or title of our page or post can be in <h1> heading, sidebar headings can be in h2, and so on remember headings are bold by default and have different sizes according their numbers h1 is biggest heading, h2 is smaller than h1 , h3 is smaller than h2 and h6 is the smallest heading than all other headings. These all headings are bold and have some margin in them top and bottom means they leave some space at top and at bottom.
Later you will need to remove headings top and bottom margins and you will do that with CSS i will not go in detail now. Let’s see demonstrate of all xhtml headings.
<h2>I am h2 heading</h2>
<h3>I am h3 heading</h3>
<h4>I am h4 heading</h4>
<h5>I am h5 heading</h5>
<h6>I am h6 heading</h6>
Above code will give display like
Here demo would be little different because these headings are using my CSS for this website but this is just to tell you headings are different from each other by number.
I am h1 heading
I am h2 heading
I am h3 heading
I am h4 heading
I am h5 heading
I am h6 heading
Don’s worry where will you write this code about we will cover that soon, one thing keep in mind for Search Engine optimization from biggining your document should have only 1 H1 heading which should relate to your blogTitle tag.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?