Forum Moderators: open
<h2 class="afc"> <strong style="font-size: 17px;">CompanyName</strong>
<img src="/images/spacer.gif" alt="" style="background-color: rgb(0, 52, 118);" height="1" vspace="0" width="375"><br>
<span style="margin-left: 50px;">America's First Choice for</span><br>
<span style="margin-left: 50px;">ThreeTopProductCategories.<font size="2"> <sup>SM</sup></font></span>
</h2>
Yes, I was hoping the h2 tag would give a boost in the SERPs. But this bit of text will remain at the top of the home page, in large font one way or the other. I just figured it would be better off in the h2 for SE purposes....but now all this extra code is making me wonder.
So best bet: a) regular font, in <strong>, b) <h2> with the extra formatting (as seen above), or c) <h2> but convince client it must be done without line breaks, the horizontal rule, etc.?
I thought if you alter the style to be too different from the actual font size of the <hx> tag, it might look spammy. Not true?
That's a very widespread piece of crazy thinking being spread by too many people these days. Don't believe them at all. And don't even try to argue with them, either, just go back to coding. Of course, if you make an h1 element render in a 2px font or something like that, it becomes "hidden text" and it would not pass a hand check by a search engine. But you can style REAL h1 headers however you like so that they look good on the page.
OK, if I change to h1, then which option, a, b or c?
Just get as much of that special styling out of the inline html as possible. And maybe rethink the approach: isn't this actually two elements rather than one? Possibly H1 and H2? Maybe the second line isn't really a second level head at all, unless some information follows. Maybe it's just a tagline, no?
I'd also suggest replacing the horizontal rule with a text-decoration:underline rule. I'd aim for the following inline html:
<h1>CompanyName</h1>
<h2>America's First Choice for ThreeTopProductCategories</h2>
You can place all the css rules for h1 and h2 in the <head> section or in an external .css file. You might even force an automatic line break by giving H2 a width rule.
I thought if you alter the style to be too different from the actual font size of the <hx> tag, it might look spammy. Not true?
true or not, it would be presuming that bots can actually parse and contextualize a stylesheet
use the HTML as would be logical to do so and style to your hearts content
If I have a page with a heading and subheading (tagline).. where would you put the break? In the middle of the top heading or between the two of them?
[edit] too slow tedster said it more succinctly
[edited by: SuzyUK at 9:47 pm (utc) on Sep. 11, 2006]