CSS内容属性SEO友好吗? [英] Is CSS content property SEO friendly?
问题描述
从搜索引擎优化的角度来看,CSS内容属性不好,搜索引擎是否真的使用:和
:
选择器?
以下示例为例:
Mr.A使用CSS content
属性将问题标签嵌入到 h1
中,所以我的问题是搜索引擎在我的 h1
标签?我很确定他们没有。
< h1 class =CSS>纯CSS菜单< / h1>
< h1 class =HTML>结构和语义< / h1>
.CSS:之前{
content:'CSS:';
}
.HTML:之前{
content:'HTML:';
}
不,搜索引擎不会关心你在css,js,alt标签,甚至meta标签(关键字)中放入的内容,只要积极排名就到。然而,他们会尝试检测您是否注射垃圾邮件,设置h1的隐藏关键字显示:无,设置白色背景上的白色文字等。
所以......与纯物质无关内容,网址&标题可以对付你,但从来没有为你(一些黑帽可能不同意)。
Is CSS content property bad from SEO point of view, do search engines really scan the words which are injected using :before
and :after
selectors?
Take this example :
Mr.A uses CSS content
property to embed the question tag in h1
, so my question is do search engines scan that word in my h1
tag? am pretty much sure they don't.
<h1 class="CSS">Pure CSS Menu</h1>
<h1 class="HTML">Structure And Symantics</h1>
.CSS:before {
content: 'CSS : ';
}
.HTML:before {
content: 'HTML : ';
}
No, search engines do not care about what you put inside your css, js, alt tags, or even meta tags (keywords) as far as "positive" rankings go.
They will however try to detect if you are injecting spam, settings h1's with hidden keywords to display:none, setting a white background on white text, etc.
So ..anything not related to pure content, url & title can work against you, but never for you (some blackhats might not agree..).
这篇关于CSS内容属性SEO友好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!