【发布时间】:2016-08-26 07:11:31
【问题描述】:
我在我的网站上使用 schema.org (Breadcrumb) 和开放图形协议。 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>
【问题讨论】:
标签: html facebook-opengraph structured-data