Forum Moderators: open
I'm going through "optimizing" my pages following brett's guidlines.
I am inserting H1 tags as appropriate (once per page on the appropriate headline).
I have formated them usually like this:
<h1 class="h1" style="padding-top:13px;padding-left:10px;padding-right:10px;">TEXT HERE</h1>
Is it ok that i have a "class" attribuet and the "style" attribuet within the tag? Will taht lower the effect of the tag?
Thanks,
Andrew.
<h1 class="h1" style="padding-top:13px;padding-left:10px;padding-right:10px;">TEXT HERE</h1>
Hiya,
If you are using the <h1> elements once per page, you should definitely have the padding defined in the site's main stylesheet (as shown), and you probably do not need the 'class="h1"' in there either. Just put all the stuff from .h1 into the h1 declaration as indicated:
CSS:
h1 {
padding:13px 10px 0 10px;
/* Insert whatever is currently in your .h1 class in this spot and get rid of the .h1 */
}
I have no idea if this will affect SEO in any meaningful way, but it will definitely make your pages easier for you to maintain - and if the SEO works out well, it may save you a bit on bandwidth too ;)
-B