Forum Moderators: open
I have a couple of questions on the effects of using CSS on SEO.
Do search engines spider CSS files? So for example say if you have made a piece of text invisible using CSS would the spider know that you have done this? If they do spider CSS files - what happens if by using the robots.txt file you forbid the spider from reading the CSS file? Will it obey your instruction? Will it penalise you for forbidding it from doing so? And if it is forbidden from doing so will it know what affects you have created with the CSS?
Do spiders go through the code view of the webpage or do they go through users view of the webpage - or both?
Thanks for your time.
DigiFundi
There are no blocks from downloading the css files for any of these sites - no robots.txt entries, no .htaccess weirdness.
Then why is it often said that certain CSS techniques should not be used? For example in accessibility it is common to have a "Skip to Content" link. Some designers will hide the link by either positioning it off screen, or by making it invisible, or by making the text colour the same as the background colour all via CSS.
People say that these techniques should be avoided as Search Engines could consider it as spamming technique. Is there any evidence to support these concerns? If Spiders don't go near CSS then how would they know that certain content is not viewable to the standard browser user?
DigiFundi
There was a famous incident a couple months back where some prominent open source developer was selling links off his high PR homepage, then hiding them with CSS. Once discovered, it was plainly obvious that he was accepting pay to steal from legitimate adsense publishers.
Googleguy posted a few hours later where it was originally reported that Google's staff was removing his site and everything he linked to to from Google's index. His whole site is PR 0 and I expect will stay that way, and I'm sure he's busted broke and discredited in the open source community.
Having a "skip to content" link wouldn't deserve that kind of swift, harsh punishment, now would it?
Go find the actual google guidelines for webmasters, and apply them conscientiously and I'm sure you'll do fine. Google's not going to think your gaming them because you hide a couple links. Google's going to think you'ge gaming them because you're hiding a couple thousand of them.