Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Space Character Between Block Elements and Googlebot

         

levo

6:42 pm on Apr 25, 2012 (gmt 0)

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



I've been doing some code tidying by disabling styling and checking how it looks without css. I've noticed that I've been using a and span tags as block elements, without any space character between them.

For example;

<div class="menuheader">Menu</div><a href="/page1">Page 1</a><a href="/page2">Page 2</a><a href="/page3">Page 3</a>

or

<span class="title">Item Title</span><span class="inumber">Item No</span><span class="idesc">Description...</span>

Obviously with styling, elements set to display as blocks, it looks OK. But what about Googlebot?

Would Google see those links as one word? Should I add space character between those spans? or should I've used a block element (div) insted of an inline element? would you also add a space between div elements just to be sure?

I couldn't find any reference on this (or couldn't figure out the 'right' keywords)

leadegroot

8:51 am on Apr 26, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The markup around the text should compartmentalise the words sufficiently that a crawler can pick them out, even without spaces.

If in doubt, find a word on the page that is like that and do search:
word site:example.com
If the results show the word, then you are sweet :)
Testing is always better than guessing.