<h1> tag or <h1 class=""> tag

Discussion in 'Search Engine Optimization' started by protocol96, Mar 6, 2007.

  1. #1
    Is there any difference between <h1>keyword</h1> & <h1 class="">keyword</h1>

    Cause I used a script which checked everything on the page for the particular keyword, when i used the later, it didnt show me that i have the keyword in my header.

    I am worried that even if i use my keyword in the <h1 class="">keyword</h1>, it wont get the same weightage, or am I wrong?

    :confused:

    Thanx

    Apologies-- I didnt mean to add the stars it just happened, stupid me
     
    protocol96, Mar 6, 2007 IP
  2. Kain

    Kain Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'd say it would carry the same weight but if you want to be sure you can define the look of the H1 tag in a style sheet
     
    Kain, Mar 6, 2007 IP
  3. protocol96

    protocol96 Peon

    Messages:
    413
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    the look of h1 is defined in stylesheet by <h1 class= , thats where everything is gettin messed up.
    the look n feel changes for both of them, h1 mite get me juice whereas h1 class will get me the same look n feel.

    and the issue only lies with mozilla.
     
    protocol96, Mar 6, 2007 IP
  4. KC TAN

    KC TAN Well-Known Member

    Messages:
    4,792
    Likes Received:
    353
    Best Answers:
    0
    Trophy Points:
    155
    #4
    No difference :)
    Go ahead and utilize classes for easy maintenance.
     
    KC TAN, Mar 6, 2007 IP
  5. esoomllub

    esoomllub Well-Known Member

    Messages:
    279
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    110
    #5
    My personal experience is that it's easier for me to put the style on an H1 in the stylesheets. If I have a need for an additional H1 style, I'll either use H2's or other header tags... or just drop a style attribute in the H1 to override the particular style I want overloaded. I'm just not used to dropping a class in an h1 tag. I also like to keep the HTML smaller (even 10 bytes at a time ;) )
     
    esoomllub, Mar 6, 2007 IP