breadcrumb markup - 主页和当前页面?

时间:2013-04-07 20:52:49

标签: html markup breadcrumbs rich-snippets

您是否应该为面包屑标记主页和当前页面?我只使用数据词汇表因为schema.org不允许标记标题或网址 - 只有一行没有分隔符的文本,除非手动添加。

这是我现在拥有的一个例子。请注意,我标记了主页和当前页面 - 这是正确的还是应该标记一个或两个?

<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a class="home" itemprop="url" href="/"><span itemprop="title"><img alt="Home" height="30" src="/images/trans.gif" width="16"></span></a></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/services/"><span itemprop="title">Services</a></span></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/service/widget/"><span itemprop="title">Widget</a></span></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/service/widget/features.htm"><span itemprop="title">Features</span></a></li>

1 个答案:

答案 0 :(得分:0)

我测试了以下似乎有用的内容,我认为您只是错误地使用了几个结尾的</span></a>标记。

<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a class="home" itemprop="url" href="/"><span itemprop="title"><img alt="Home" height="30" src="/images/trans.gif" width="16"></span></a></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/services/"><span itemprop="title">Services</span></a></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/service/widget/"><span itemprop="title">Widget</span></a></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/service/widget/features.htm"><span itemprop="title">Features</span></a></li>

你可能已经阅读了它,但你可以在这里阅读更多有关面包屑的信息:http://support.google.com/webmasters/bin/answer.py?hl=en&answer=185417“微数据”链接就是一个很好的例子。

相关问题