Forum Moderators: phranque

Message Too Old, No Replies

Font Styles inside H1, H2 and H3 tags

class inside heading code

         

jonescd

12:56 am on Feb 24, 2007 (gmt 0)

10+ Year Member



<h1 class="style5">Solar Panels, Solar Energy Systems,Wind Power Generators</h1>

Please see the class=style5 in the above h1 tag. Can someone please comment whether this is a problem. I have heard that you don't want anything inside the h1 tag for google to properly utilize it.

bill

2:03 am on Feb 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have heard that you don't want anything inside the h1 tag for google to properly utilize it

That would not be a problem for any search engine that I know of.

Corey Bryant

11:58 am on Feb 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Where did you hear this from? The ability to apply styles to the header tags would be pretty important so that they keep with the consistency of your layout.

True, I am sure thousands of people abuse this right not and will continue to do so. But consistency is important

-Corey

kaled

2:08 pm on Feb 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It has been suggested that Google looks at (embedded) CSS. If you're trying to hide text or use headings for SEO (rather than users) then even if Google, etc. does not detect it now, they may in the future.

Kaled.

jonescd

1:24 am on Feb 25, 2007 (gmt 0)

10+ Year Member



Noone is trying to hide anything. Just organizing headings to show my themed content. I'm not using css in the background for headings although I've heard of that.

Robert Charlton

12:19 am on Feb 26, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I have heard that you don't want anything inside the h1 tag for google to properly utilize it.

Some years back, the common wisdom was that it wasn't a good thing to put <font> tags inside <h1> tags, as that would distort how the engines regarded them. I don't know whether this is actually true, but I still assume that it might be.

Fortunately, just about that time, css came along... and I don't think that there's any disagreement that css control of hx heading appearance is OK. I myself prefer using class selectors (eg, class="heading") rather than element selectors (eg, h1, h2, etc), because that gives me more flexibility in page layout.

A principle I also choose to apply is that, visually, the heading should look like a heading (as opposed, say, to looking just like the rest of my body text).

Re css formatting... these days, I'm troubled by what some designers are putting around the <h1> elements. I recently encountered a template from a designer where the <h1> was enclosed in <p> tags for formatting, and then given some additional properties of its own. This isn't valid html... and I think Google might possibly have trouble with an <h1> so enclosed. What you're doing, though, is fine.

steve

9:39 am on Feb 27, 2007 (gmt 0)

10+ Year Member



Some years back, the common wisdom was that it wasn't a good thing to put <font> tags inside <h1> tags, as that would distort how the engines regarded them. I don't know whether this is actually true, but I still assume that it might be.

Recently I've seen more of this: Hx><a>....</a></Hx> in CSS designs.

Would a search engine see this as attempt to increase the importance of the link?