Forum Moderators: phranque
I'm rewiriting my pages for better SEO and xhtml complience.
However I have run into a problem.
Previously to bold text, I wrapped it in <..b..> tags. However this is not xhtml complient, instead I have to use CSS.
<.b> Hi my name is chris</b> and I like chicken.
Instead I'll wrap the text in a class called "bold" which will font-weight bold the text:
<.span class=bold> Hi my name is chris <./span> and I like chicken.
This brought up an interesting question concerning SEO.
I know google likes it when keywords are bolded (via <.b> and that this helps SEO. However does google consider text which is bolded via CSS to actually be "bold" and thus gives it importance in SEO?
<b></b> is a valid element in XHTML, some people would argue that using it violates the principle of separating content from styling. Of course, so does using
<strong></strong> as the equivalent of <b></b>. And both that and <span class="bold"></span> seem like an awful lot of bytes to waste just to get the same effect.