H2 tag for navigation heading?

Discussion in 'HTML & Website Design' started by yogesh sarkar, Dec 3, 2007.

  1. #1
    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?
     
    yogesh sarkar, Dec 3, 2007 IP
  2. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #2
    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.
     
    joebert, Dec 3, 2007 IP
  3. Nystul

    Nystul Well-Known Member

    Messages:
    3,077
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    175
    #3
    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
     
    Nystul, Dec 3, 2007 IP
  4. yogesh sarkar

    yogesh sarkar Well-Known Member

    Messages:
    1,740
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    140
  5. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #5
    Just wait. :D
     
    joebert, Dec 3, 2007 IP
  6. zyml

    zyml Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    IMO <h2> is better used on the title of the page. I think it's better in terms of SEO.
     
    zyml, Dec 3, 2007 IP
  7. chikki.v

    chikki.v Peon

    Messages:
    101
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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
     
    chikki.v, Dec 3, 2007 IP
  8. multippt

    multippt Peon

    Messages:
    176
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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.
     
    multippt, Dec 3, 2007 IP
  9. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Why do you think that H2 (a sub heading to H1) is better than H1 for the page title? :confused:

    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.
     
    AstarothSolutions, Dec 4, 2007 IP
  10. zyml

    zyml Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    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>
     
    zyml, Dec 4, 2007 IP
  11. leeholl

    leeholl Active Member

    Messages:
    271
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #11
    i was thinking the same
     
    leeholl, Dec 4, 2007 IP