我的网站的CSS何时会影响我的搜索引擎排名? [英] When will my site's CSS affect my search engine ranking?

查看:314
本文介绍了我的网站的CSS何时会影响我的搜索引擎排名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

起初,我认为css是用于绝对没有什么,但样式的文档,当用户在浏览器中查看它。但是后来我意识到css也被搜索引擎用于索引页面。搜索引擎不索引内容 display:hidden 我相信,严重惩罚使用关键字堆叠的网站(用户从来不会看到的文本,它的背景或出现在屏幕之外)。

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).

我的2个假设是正确的吗?搜索引擎如何使用CSS?将改变我的搜索引擎排名的CSS的具体示例将是真棒。 :D

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

推荐答案

一般来说,你的假设是正确的。如果用户无法看到文本,那么它不是有意义的文本,因此它不被索引。过去,网站管理员会通过在网页中放置不相关的关键字和文字并将其隐藏来试图获取非法的搜索引擎匹配,从而对系统进行游戏。

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.

使用标题(如H1)和文字在页面上的位置(可能受CSS影响)会影响搜索评分。

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.

这篇关于我的网站的CSS何时会影响我的搜索引擎排名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆