external nofollow和nofollow属性的区别详解

admin
admin
admin
376
文章
102
评论
2021年9月5日23:27:33
评论
270

external nofollow和nofollow属性的区别详解

external nofollow属性和nofollow的属性的区别很多小伙伴们很迷糊,这里详细的说明一下。

nofollow属性

nofollow属性:这个属性是Google曾经提出的一个标签属性,使用该属性表示搜索引擎不会用这个链接计算网站的PR值,就是告诉搜索引擎蜘蛛不要传递网站权重。

比如网站的一些不重要的页面(登录,注册,免费声明等)的链接都可以加上 nofollow,告诉蜘蛛这些页面不重要,不必传递权重。

示例代码:

<a href="https://www.pinzixing.com" rel="nofollow" >品自行博客</a>

external属性

external属性:该属性与 target="_blank" 标签意思差不多的,都可以表示在新的窗口打开网页URL,,都表示在新的窗户打开URL。但如果网站有严格的 DOCTYPE 声明的话就必须用external属性了。

示例代码:

<a rel="external nofollow" target="_blank" href="http://www.baidu.com/"  rel="external" target="_blank">

注意:

1、在 SEO 优化中,使用过多的target="_blank"标签属性会影响蜘蛛的跳出率,这时就可以使用rel="external" 属性来一并使用。

2、如果网页的第一行,出现下面的代码,那么 target="_blank"  可能会失效,不过可以使用来 rel="external" 替代。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

external nofollow属性

external nofollow属性就是将external和nofollow两个属性放在一起,其实rel=“external nofollow”这个用法就是比rel=“nofollow”更为规范一些,两者翻译过来的意思就是:

rel=“external nofollow”=不要抓取外部链接

rel=“nofollow”=不要抓取。

以上就是关于external nofollow属性和nofollow的属性的区别的全部内容。

admin
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: