Forum Moderators: phranque
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.
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?