使用Schema.org的Breadcrumb没有显示在Google Rich Snippets测试工具中

dom*_*063 5 breadcrumbs microdata schema.org google-rich-snippets

breadcrumb使用Google Rich Snippets测试工具测试了Schema.org 示例.

<div itemprop="breadcrumb">
  <a href="category/books.html">Books</a> >
  <a href="category/books-literature.html">Literature & Fiction</a> >
  <a href="category/books-classics">Classics</a>
</div>
Run Code Online (Sandbox Code Playgroud)

结果是该工具无法识别.

那么,是否存在错误或存在语法问题?如果是这样,那么正确的语法是什么?

小智 6

您的问题与此问题有点相同如何为面包屑实现schema.org标记?

根据谷歌网站管理员中心帮助论坛,专家不建议暂时使用schema.org面包屑标记,似乎"schema.org面包屑结构中存在某种故障".相反,我们需要使用data-vocabulary.org痕迹标记,谷歌和其他搜索引擎也可以轻松阅读.

data-vocabulary.org面包屑标记示例:

<div>
  <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
    <a href="http://www.example.com/" itemprop="url">
      <span itemprop="title">example</span>
    </a> >
  </span>  
  <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
    <a href="http://www.example.com/fashion/" itemprop="url">
      <span itemprop="title">Fashion</span>
    </a> >
  </span>  
  <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
    <a href="http://www.example.com/fashion/women/" itemprop="url">
      <span itemprop="title">Women</span>
    </a> >
  </span>
  <span itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
    <a href="http://www.example.com/fashion/women/boots/" itemprop="url">
      <span itemprop="title">Boots</span>
    </a>
  </span>
</div>
Run Code Online (Sandbox Code Playgroud)


uno*_*nor 0

你有一个带有 的容器元素吗itemtype="http://schema.org/WebPage"请参阅http://schema.org/WebPage中的示例。

您还可以看到问题如何实现面包屑的 schema.org 标记?