Using schema.org branchOf with itemref

谁说我不能喝 提交于 2019-11-26 18:00:52
unor

About itemref:

  1. it has to be specified on elements with itemscope
  2. it is used to reference other properties (= itemprop in Microdata)

So this means for you:

  • move itemref to the Hotel
  • move itemprop="branchOf" to the Organization

Minimal example:

<div itemprop="branchOf" itemscope itemtype="http://schema.org/Organization" id="schema-organization">
 <h1 itemprop="name">The Hotel Chain</h1>
</div>

<div itemscope itemtype="http://schema.org/Hotel" itemref="schema-organization">
 <h2 itemprop="name">Hotel Location 1</h2>
</div>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!