Heading tags are used in HTML coding of a website to present the structure of a web page to visitors and search engines. We generally use six different type of heading tags in a website i.e. h1, h2, h3, h4, h5 and h6.
These heading tags are used to divide a particular page into sections in order to define the importance and the type of content underneath the header. In the order of importance, h1 is the most important and h6 is least important.
As H1 heading tag is the most important part of a page, it generally indicates the topic for the entire web page. When a visitor visits your web page, they try to figure out what the page is about from H1 heading tag. With this it becomes easier for visitors to navigate your whole website.
To provide search results in which people are interested in, search engine try to use the same technique that visitors use. For this reason, search engine consider keywords in H1 tag as most important compare to keywords in other parts of the content on the web page. In this way, they define the page’s ability to effectively engage users.
While optimizing your web page for better SEO, we suggest keeping your keyword phrase in H1 heading tag as search engine expect heading to include clues to the page’s main topic. By doing this, search engine will consider keywords as most important and the web page is about those keyword phrases.
If your web page has more than one heading tag then search engine robots will try to read the structure based on the placement of heading tags before adding your web pages to their indexes.
Here is an example showing how heading tags are used and looks like;
- <h1>this is heading</h1>
- <h2> sub heading</h2>
- <h3> lower sub heading</h3>
- <h4>lower sub heading h4</h4>
- <h5>lower sub heading h4</h5>
- <h6>lower sub heading h6</h6>
To have a better user experience, it’s always suggested not to put too many heading tags on a page. It can be hard for users to scan the whole content and determine where one topic ends and another begins.
As H1 is considered as subject of the main page, for SEO best practices we suggest you to use one H1 hading tag per page. Do not use one keyword many times in your H1 header tag for better SEO. These types of SEO practices are not acceptable to search engines and can be considered as spam.