Forum Moderators: open

Message Too Old, No Replies

H1 Tag with a Class Attribute

Do search engines see it?

         

tedster

3:03 am on Sep 22, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



More and more I'm coding with CSS. I'm wondering if search engines "see" a tag that looks like this:

<h1 class="foo">keyword<h1>
or even:
<b class="foo">keyword</b>

Having no idea on how to code a spider, I'm at a loss here. Consequently, I'm often creating several style sheets in order to avoid making the H tags invisible. Does anyone have a feel for this?

stavs

10:46 am on Sep 22, 2001 (gmt 0)

10+ Year Member



you're probably aware of it already Tedster but just in case, I would use an external style sheet to avoid any doubt, such as:

h1 {font size="12pt"}

sorry if this is too obvious, I didn't fully understand the last part of the question - but I'd say it was the solution.

sugarkane

10:53 am on Sep 22, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've been using class attributes a lot recently, and not seen any problems with spiders or rankings.

tedster

11:51 am on Sep 22, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



stavs,
I didn't really explain this completely. My problem is that on bigger sites, I don't use the same exact style for every H1 tag on every page -- since there are different "looks" in different parts of the site.

So I either need to use separate classes for the H tags on various pages, or create a new external style sheet for each H1 look. The second solution defeats a lot of the usefulness of external files that can be downloaded once and easily maintained.

sugarkane,
Thanks for that. If I hear that kind of report a few times it will give me the courage to do what I want to do (being essentially lazy, as I am!)