When will my site's CSS affect my search engine ranking?

自古美人都是妖i 提交于 2019-12-10 18:16:15

问题


At first I thought css was used for absolutely nothing but styling the document when the user viewed it in a browser. But then I realized that css is also used by search engines in indexing pages. Search engines don't index content with display: hidden I believe, and heavily penalize sites that use keyword stacking (text that is never seen by the user, either the same color as its background or that appears far off the screen).

Are my 2 assumptions correct? How else is CSS used by search engines? Specific examples of CSS that would change my search engine ranking would be awesome. :D


回答1:


In general, your assumptions are correct. If the text cannot be seen by the user, then it is not meaningful text, and therefore it is not indexed. In the past, webmasters would game the system by putting irrelevant keywords and text in their pages and hiding it, in an attempt to get illegitimate search engine hits.

In addition, use of headings such as H1 and the positioning of the text on the page (which can be affected by CSS) has an influence on search ratings.




回答2:


Yes you are right. Do a quick search on google with the keywords SEO and CSS and you'll find plenty of articles like this one:

http://www.stonetemple.com/articles/css-and-seo.shtml



来源:https://stackoverflow.com/questions/3561420/when-will-my-sites-css-affect-my-search-engine-ranking

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!