【发布时间】:2014-03-11 15:39:29
【问题描述】:
我在 google 上测试了我的微数据 schema.org:
google 工具没有返回任何错误...
**Item**
type: http://schema.org/webpage
property:
url: http://127.0.0.1/
image: http://127.0.0.1/design/logo.jpg
datemodified: 2014-03-05 20:12:56
text:
Item 1
breadcrumb: Skip to content
text:
Item 2
**Item 1**
type: http://schema.org/wpheader
property:
url: http://127.0.0.1
headline: website name
image: http://127.0.0.1/design/logo.jpg
description: some text
**Item 2**
type: http://schema.org/sitenavigationelement
你可以看到我在网页类型中使用了多个...
有效吗?
如果是,您知道 WebPage 类型的 itemprop="url" 无效...或者 ItemList 的 itemListElement 有效。如何识别哪个 itemprop 有效,哪个无效?
----------------///编辑///--------------------------------
<html itemscope itemtype="http://schema.org/webpage">
<body>
<div itemprop="text" itemscope="itemscope" itemtype="http://schema.org/wpheader">
...
</div>
<div itemprop="text" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
...
</div>
</body>
</html>
【问题讨论】:
-
如果您没有收到错误,为什么还要质疑它的有效性?
-
因为对一种网页类型使用 double itemprop="url" 无效但谷歌实验室不返回任何错误!
-
我不确定我是否完全理解您的要求。你的问题是是否允许在同一个项目中多次拥有相同的属性?
-
谢谢亲爱的 unor...我读到了'schema.org/WebPage'...I 谢谢它是真的...就像你对我的回答之一关于 itemList
-
@user3307827:我还是不明白你的问题。你能试着改写一下吗?
标签: html microdata schema.org