Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know that Google used to do things like look at font-size and font-weight (or the equivalents from when Google first started) from their initial paper. But that was in the 90's.

Does anybody know which styles are important to search engines now?

(Explanation: I know that technically we should serve up the same page to everyone—however, for many websites this simply isn't possible. A website I'm currently working on has a "content-only" version for search engines and users without JavaScript—they cannot integrate this version with the "main" JavaScript-friendly version of their site—and I'm not sure which styles I should carry over from the main site's content.)

share|improve this question

migrated from stackoverflow.com Jul 24 '11 at 17:39

This question came from our site for professional and enthusiast programmers.

To which Stack Exchange site should this question go if it's off topic? – luxun Jul 24 '11 at 16:55
does css matter at all? – yi_H Jul 24 '11 at 16:56
As I said, Google (at least when it started) judged text importance by taking into account relative sizes and bolding of text. – luxun Jul 24 '11 at 17:02
That was 10(?) years ago.. use <h1> <h2> etc.. – yi_H Jul 24 '11 at 17:05
@luxun: I think it would be suitable for webmasters.SE, as it's a broad issue. – Chris Morgan Jul 24 '11 at 17:14
up vote 4 down vote accepted

None. AFAIK CSS doesn't factor into it at all.

Update: I've asked Gary Illyes, who works for Google and he says:

CSS files aren't indexed and as far as I know they're only fetched and used in very limited case


share|improve this answer
As I said, Google (at least when it started) judged text importance by taking into account relative sizes and bolding of text. – luxun Jul 24 '11 at 17:03
That's right. Not any more. It's all about h1, h2, h3 tags for importance now. – Rich Bradshaw Jul 24 '11 at 17:04
Do you have a source for that? – luxun Jul 24 '11 at 17:05
No, but CSS is notable by its absence in google.com/support/webmasters/bin/answer.py?answer=35769 and google.com/support/webmasters/bin/answer.py?answer=35291 . External CSS is downloaded, as Matt Cutts mentions that hiding text via CSS is detected, but I am pretty sure it doesn't affect ranking in any other way. (So, unsourced, but I've seen no evidence to suggest otherwise) – Rich Bradshaw Jul 24 '11 at 17:14
So do you think I should just eliminate all CSS entirely? – Aaron Yodaiken Jul 24 '11 at 19:12

As far i know, googles crawler doesn't like hidden text. E.g. when the background match text color.

share|improve this answer
does this mean that google will analyse css? – Sam Jul 25 '11 at 4:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.