Forum Moderators: open

Message Too Old, No Replies

Assigning h1 a class

Still good for SEO?

         

kiril

12:01 am on Sep 21, 2003 (gmt 0)

10+ Year Member



I used CSS to add some style rules to h1 on my index page, and consequently, my h1 now has a class attached to it:

<h1 class="indexpageh1"> Widgets </h1>

Question: Is this h1 still recognized as h1 for purposes of SEO, i.e. emphasizing my keyword?

Thanks

P.S. I realize one can add style rules to h1 without giving it a class, but I had a special situation that required me to do it this way.

shawn

12:28 am on Sep 21, 2003 (gmt 0)

10+ Year Member



I currently use CSS to contrl my H1 text size and can say it has helped in the SERPS -

kiril

1:22 am on Sep 21, 2003 (gmt 0)

10+ Year Member



Thanks for the reply Shawn. My hope is also that using a well-chosen h1 on each page will help clarify the content of my pages for the search engines.

Do you mind if I ask whether you used a usual h1:
<h1> Widgets </h1>

or an h1 with a class (or id) name?:
<h1 class="Thish1"> Widgets </h1>

crowthercm

7:57 pm on Sep 21, 2003 (gmt 0)

10+ Year Member




Do you mind if I ask whether you used a usual h1:
<h1> Widgets </h1>

or an h1 with a class (or id) name?:
<h1 class="Thish1"> Widgets </h1>

If you're worried about it, why don't you just use a different stylesheet for your index page and map the heading tags directly. You then won't have to worry about whether the search engine treats "class" versus "id" versus neither differently now or in the future.

MonkeeSage

8:15 pm on Sep 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



AFAIK, the SEs don't check / care if you have styled your elements or not (beyond what is necessary for spam filtering). It is only the presence (or negatively, the absence) of the <h1> element that would make any difference, not how it is styled.

Jordan