结构化数据测试工具痕迹导航错误



我在我的网站上使用 schema.org(面包屑(和开放图协议。Google的结构化数据测试工具将它们混合在一起并抛出一个错误。

可以将代码复制并粘贴到工具中以查看错误消息。

我误解了什么或做错了什么?感谢您的任何帮助。

这是代码:

<html lang="en" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
  <head>
    <meta property="og:url" content="http://example.com/examples/example" />
    <meta property="og:type" content="website" />
    <meta property="og:title" content="Examples and so on" />
    <meta property="og:description" content="A lot of examples here" />
    <meta property="og:image" content="http://example.com/example.jpg" />
  </head>
  <body>
    <ol class='breadcrumb' vocab='http://schema.org/' typeof='BreadcrumbList'>
      <li property='itemListElement' typeof='ListItem'><a property='item' typeof='WebPage' href='/'><span property='name'>Home</span></a><meta property='position' content='1'></li>
      <li property='itemListElement' typeof='ListItem'><a property='item' typeof='WebPage' href='/examples'><span property='name'>Examples</span></a><meta property='position' content='2'></li>
      <li property='itemListElement' typeof='ListItem'><a property='item' typeof='WebPage' href='/examples/example'><span property='name'>Examples and so on</span></a><meta property='position' content='3'></li>
    </ol>
  </body>
</html>

RDFA(opengraph(和microdata(schema(不能在同一个HTML页面上使用

"3(我们将继续支持现有的丰富网页摘要标记格式。如果您已经使用微格式或 RDFa 在页面上进行了标记,我们将继续支持它。需要注意的一点是:虽然可以使用新的 schema.org 标记或继续使用现有的微格式或RDFa标记,但您应该避免在同一网页上混合这些格式,因为这会混淆我们的解析器。

来源: http://googlewebmastercentral.blogspot.in/2011/06/introducing-schemaorg-search-engines.html

最新更新