I am currently modifying a free template for use on one of my site. In the template the designer has used to h2 tags to define heading on top of navigation links etc. i.e. navigation, advertisement etc. here is the code that I am referring to <h2>Navigate:</h2> <ul> <li><a href="#" class="navText">Home</a></li> </ul> <h2>Advertisement</h2> HTML: Is this ok or is it bad from SEO and design perspective and should be changed to different tags?
That seems to be bad. Content comes before navigation in terms of importance. A visitor will look to navigation only after they've determined the page they're currently looking at is not what they're looking for. I had an issue recently where <h2> elements were used for navigation like that and Adsense was showing crap ads. I swapped the navigations' <h2> elements out with <h6> elements & made sure <h2> elements were used for section headers. The next day Adsense was showing ads more relevant to the page content instead of the navigation. If you have proper <h1>, <h2>, etc usage elsewhere for content, the simple solution would be to swap the <h2> elements you're using for navigation out with <h6> elements & alter your CSS to match this change.
Remove the navigation H2, and changed it to something else. Don't dilute the importance of your H2 tags. I keep the H2 for site titles in pages
hi i think <h2>is better to used only for title n any headings on the web page.n listitem<li> doesnt have closetag</li>.ofcorse it doesn't matter.ok allthe best
It is advisable not to use H2 for the navigation header, because it will lower the quality of other H2s in the page as well.
Why do you think that H2 (a sub heading to H1) is better than H1 for the page title? I would argue that technically it is a sub heading to the page and therefore should have a <h>eading tag however what is technically correct HTML and what is good for SEO purposes are not always the same.
It actually depends on each coder. I use <h1> for the title of the website (as a whole), so probably for example: <h1>My Website Name</h1> <h2>About Us</h2>