【发布时间】:2013-05-15 18:26:19
【问题描述】:
使用 Microdata 为 itemtype=".../Person" 语义声明 itemprop="image" 的旧方法如下:
<section itemscope itemtype="http://data-vocabulary.org/Person">
<h1 itemprop="name">Andy Runie</h1>
<p>
<img itemprop="photo" src="http://www.example.com/photo.jpg">
</p>
</section>
很简单。
显然(根据 the documentation)以前的方法已被弃用,HTML5 微数据中使用的“新”模式是Schema.org。
Schema.org 文档显示“Thing”是“Person”的父级
和
itemprop="image" 现在位于“事物”下。而之前itemprop="photo" 位于“人员”之下。
根据 documentation(2a.schema.org 类型和属性)我们发现 Person > 继承自 事物...
问题:
使用这个新标准,我可以简单地使用以下内容在我的 HTML 中适当地显示 'isitemtype="http://schema.org/Person"`?
<section itemscope itemtype="http://schema.org/Person">
<h1 itemprop="name">Andy Runie</h1>
<p>
<img itemprop="image" src="http://www.example.com/photo.jpg">
</p>
</section>
【问题讨论】: