tags:

views:

314

answers:

7

I used tag to indicate the importance of a sentence. However, it disrupted the consistency of the page style. So I change it back with CSS. The result is that to visitors it is the same but to search engines(SEs), obviously, different. And this is what SEs are annoying about.
So my question is can SEs read CSS, and further judge the whole page with it? If so,is my behavior acceptable or not by SEs.
Thank you in advance!

+4  A: 

Yes, at least searchengines try to determine whether you violate their rules, such as hide/fake content (such as attempting to display seemingly valid semantic content to the search engine, but actually hiding that content to users and instead displaying ads.)

Not sure how well the technology works but I'd say it is probably pretty advanced at understanding your site including CSS structure by now.

Alex
A: 

Search engines don't read external CSS files, and they usually don't read embedded CSS, but you can never be sure about that (Google and other search engines are free to use whatever method that's best suited for finding relevant content).

Philippe Leybaert
completely wrong. at least ONE search engine does read CSS: http://www.mattcutts.com/blog/seo-mistakes-unwise-comments/
b0x0rz
That's why I said you can never be sure about that
Philippe Leybaert
@b0x0rz: I've never seen Google read any external CSS files (which doesn't mean it never does, but not here at least)
Philippe Leybaert
how often do you "see" what Google is doing?
Anthony
@Anthony: webserver logs?
Philippe Leybaert
Google openly admits to looking at the calculated style of a page to look for black-hat SEO techniques. There's no question there.
Gabriel Hurley
A: 

Yes. Google can but we don't really know for sure about everything that Google takes in consideration. Otherwise there would be mass gaming of Google's algorithms.

I do know that Google don't like it if you create links with the same or a close colour as the background so they look invisible to the user. They check for that because it is typical link farm behaviour and they will drop your page rank if you do.

As long as you aren't doing anything questionable like I mentioned above in your CSS, I don't think it will be a problem for you.

Brock Woolf
A: 

You can use styling as long as you’re not hiding text or other contents of the page from search engines. And even if you do, you shouldn’t get penalties automatically (i think human intervention is needed for a ban or a filter, but thats not the case).

If you like to emphasize some part of the content, use appropriate HTML tags to do this, <em> or <strong> for example. Then, you can style them according to your needs.

Maciej Łebkowski
+2  A: 

A search engine doesn't really need to take CSS into consideration, to the best of my knowledge (except in the above examples, where CSS is being used for google-hacks).

If you style a sentence as red and the user agent defaults to blue, how would either outcome affect a search engine? Perhaps for caching (which usually includes CSS) or thumbnails or some such it might be a factor, but for search engine optimization and indexing and what not, CSS shouldn't be relevant to a SE crawler. The whole point (as I see it) of CSS is to separate the actual content (which is what should be important and what the web crawlers are looking at) from the presentation of the content (which is meant to improve the user experience). This is why questions of semantics and accessibility are so important. A good web document is one where a screen reader is just as good for presenting the content as Firefox 3.5, or where the user can turn off all CSS and still get a pretty good (albeit boring) version of the site.

For example, suppose you wanted all important sentences to be bright blue, while normal sentences are a dark grey. I am:

  • blind, and thus miss that distinction,
  • color blind, thus miss that distinction,
  • a web indexing robot, thus miss that distinction

Even if the bot can tell it's blue, that doesn't mean it's important to the bot. Nor is the font weight or italics, or a border, or being 40 pixels tall. Think of a SE crawler as a blind user. If a blind user doesn't know your sentence is important, why should a robot?

The best thing to do, as already mentioned, is to use tags that indicate importance, namely the <i> tag. While most people think that it's an outdated style tag for italicizing text, the i stands for "important" and you can set the css for all i tags with "font style: normal" to turn off the default italics. But screen readers will still add emphasis on the sentence, old browsers without CSS will italicize (which is better than nothing), and search engines will know it's important, even if that doesn't matter to their algorithm.

Anthony
The <em> and <strong> tags are sometimes considered better than the <i> or <b> tags because <em> and <strong> are considered more semantic rather than presentational. Splitting hairs, I know.
Gabriel Hurley
Those are hairs I love to split, for sure. I'd rather have element names that tell the curious user viewing the source what is going on instead of reinventing an old style element into a semantic element. But until we abandon the remaining style tags, its better to use them for semantic purposes instead of for styling.
Anthony
+2  A: 

The answer is both yes and no.

CSS is presentational, and while search engines do want to know about the presentation of the page to better understand it, CSS isn't a useful tool for them to get meaningful data about content since class names and id's have no standard implementation.

For example, calling a class "title", it could be applied to a page title, a site title, a book, movie or song title, or a formal title for a person. Not helpful there, so search engines disregard it.

However:

Presenting something that is substantively different to a search engine (or any user that uses a screen-reader, or has stylesheets turned off) is very bad practice.

Google (and other search engines) will lower your rank for doing that if they find it egregious (e.g. hiding unrelated keywords on a page so users won't see them but search engines will). Google has whole teams of people that monitor this sort of activity and develop algorithms to detect it.

So the technical answer is YES, search engines DO understand CSS.

In the end:

The question shouldn't be "do they understand it so that if they don't I can game the system...", it should be "is what I'm making the best way to convey my information to EVERYONE" and that includes both users and search engines.

Gabriel Hurley
A: 
tag