Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
    
To which Stack Exchange site should this question go if it's off topic? –  luxun Jul 24 '11 at 16:55
1  
does css matter at all? –  yi_H Jul 24 '11 at 16:56
1  
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
add comment

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

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

2 Answers

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

https://plus.google.com/109139237014771009015/posts/R5TCdFR19M8

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
1  
Do you have a source for that? –  luxun Jul 24 '11 at 17:05
1  
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
show 1 more comment

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
add comment

Your Answer

 
discard

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.