我们是否应该在网站导航中使用(HTML5)rel属性

Dal*_*son 8 navigation html5 rel nav

简单直截了当的问题,但其中一个我找不到任何建议.

支持的适当的HTML5值包括:

  • 作者
  • 第一
  • 持续
  • 下一个
  • 上一页
  • 救命
  • 许可证(不是"许可证")

导航包括索引,关于,联系和合法

..从index.html页面的角度来看:

  • index.html with rel ="first"
  • about.html with rel = author next"
  • contact.html with rel ="help"
  • legal.html with rel ="license last"

...从contact.html页面的角度来看:

  • index.html with rel ="first"
  • about.html with rel = author prev"
  • contact.html with rel ="help"
  • legal.html with rel ="license next last"

我接受在导航中使用rel将实现很少; 但它可能会以某种小的方式帮助搜索引擎.

我举了两个例子来说明这在实践和评论中是如何运作的!

亲切的问候,戴尔

编辑以下评论中的示例

导航包括索引,关于,联系和合法

..从index.html页面的角度来看:

  • index.html没有rel
  • about.html with rel = author"
  • contact.html with rel ="help"
  • legal.html with rel ="license"

...从contact.html页面的角度来看:

  • index.html没有rel
  • about.html with rel = author"
  • contact.html with rel ="help"
  • legal.html with rel ="license"

luk*_*uke 3

好问题 !老实说,我不是 rel 属性方面的专家(所以如果我错了,有人会纠正我),但据我所知,Google 可以通过该属性验证网页上的身份。例如

<a rel="me" href="https://plus.google.com/110037486217106671520">Luke Southam</a>

我知道这不是网站导航的主题,但它表明 Google 正在读取标签内的属性并为其建立索引<a></a>。至于在网站导航中使用它,如果它(可能)有助于谷歌(或其他搜索引擎)更好地索引您的网站,我会说那就去做吧。