SEO爱站网 logo SEO爱站网

网络营销策略:从SEO角度看 Alt比Css Image友好吗?

高阶白帽 814 0 2019-12-10 12:00:05

大家都知道现在div+css布局很流行,其中css让网页的内容和表现形式分离,精简了网页代码,改几个代码,又一个新的网页风格,呵呵!打开速度就不用说了!但在从seo的角度看,隐藏文本是seo作弊!!css是不是上面所说的很完美吗?我也不是确定,所以大家一起讨论下css image可完美替代标签img?当然也包括alt了!

1.一般网页中图片的html代码如下:


logo name

2.如果用css代替,先写一段css代码(其中.logo为类选择器):

h1.main-logo {
width: 300px; height: 50px;
background: url(images/logo.jpg);
text-indent: -9999px;
}

你在网页中调用css,代码就如下:

Logo name

上面的两种表现方式完全一样,但css表现图片的方式会使Logo name这几个字隐藏在文本中,从seo的角度看,是作弊吗?(seo高手请留言!)

为什么大家都喜欢用这个css呢?原因就不说明了,前面已经提过了!但搜索引擎能明白吗?虽然网页的打开速度对用户体现了友好,但搜索引擎能明白吗?大家都知道,搜索引擎只认识文字,不认识图片!利用css,很明显的就是隐藏文本,搜索引擎对隐藏文本的seo作弊会做出严厉的惩罚!但利用css,技术上是合情合理,google和其它搜索引擎能明白吗?

我们看看Google公司资深的高级工程师Matt Cutts怎么说?

If you’re straight-out using CSS to hide text, don’t be surprised if that is called spam. I’m not saying that mouseovers or DHTML text or have-a-logo-but-also-have-text is spam; I answered that last one at a conference when I said “imagine how it would look to a visitor, a competitor, or someone checking out a spam report. If you show your company’s name and it’s Expo Markers instead of an Expo Markers logo, you should be fine. If the text you decide to show is ‘Expo Markers cheap online discount buy online Expo Markers sale …’ then I would be more cautious, because that can look bad.

从他的话中可以看出,若故意去利用css玩seo,呵呵,那就有点危险了!若合情合理去利用css提高用户友好度,那就没有好担心的了。

后记:我还是有心的去看了google的logo,它利用的是本文第一点所提的img。而我看有些维基百科利用的是css image,他们的权重排名好像也没有什么影响!唉!难以确定的一个问题,问题还是抛给大家吧!!

本文来源:www.bobaiyou5.com

转载请注明:SEO爱站网 » 网络营销策略:从SEO角度看 Alt比Css Image友好吗?

网友跟帖
展开