链接相同的Microdata域而不嵌套

时间:2017-11-27 09:58:19

标签: html html5 microdata

我想在另一个div中链接相同的Microdata域,这就是我所拥有的:

<div id="colleau" itemscope itemtype="http://schema.org/Organization">
  <!-- Here i got name, foundingDate, founders, etc... -->
</div>

但我有一个电话号码和地址在另一个div中而且它没有链接:

<div itemscope itemtype="http://schema.org/Organization" itemref="colleau">
  <!-- Phone, adress here -->
</div>

我该怎么做?

1 个答案:

答案 0 :(得分:1)

只有一个div获得itemscope itemtype="http://schema.org/Organization" + itemref。另一个div仅获取id

<div itemref="colleau" itemscope itemtype="http://schema.org/Organization">
</div>

<div id="colleau">
  <!-- 'itemprop' in here will be added to the Organization -->
</div>