我正在创建一个简单的(嗯,在我决定用 Microdata 标记它之前它会很简单)网页,其中包含有两个办事处的企业的公司联系信息。我正在为这两个办公室使用 schema.org 和LocalBusiness。
以下是我的 HTML 的相关部分:
<body itemscope itemtype="http://schema.org/Corporation">
<header>
<hgroup>
<h1>Company Name</h1>
<h2 itemprop="description">Company description</h2>
</hgroup>
</header>
<section>
<h1><span itemprop="name">Company Name Limited</span> Offices</h1>
<article itemscope itemtype="http://schema.org/LocalBusiness">
<h2 itemprop="name">Company Name, Location 1 Office</h2>
<p itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">Street Address</span><br />
<span itemprop="addressLocality">Locality</span><br />
<span itemprop="addressRegion">Region</span><br />
<span itemprop="postalCode">Postcode</span><br />
<span itemprop="addressCountry">Country</span>
</p>
<p><a itemprop="maps" href="http://maps.google.co.uk/blahblah">Map</a></p>
<p>Telephone: <span itemprop="telephone">01234 567890</span><br />
Fax: <span itemprop="faxNumber">01234 567890</span><br />
Email: <span itemprop="email">email@domain.co.uk</span><br />
<a href="http://www.domain.co.uk" itemprop="url">http://www.domain.co.uk</a></p>
<!-- itemprop="branchOf" -->
</article>
<article itemscope itemtype="http://schema.org/LocalBusiness">
<h2 itemprop="name">Company Name, Location 2 Office</h2>
<p itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">Street Address</span><br />
<span itemprop="addressLocality">Locality</span><br />
<span itemprop="addressRegion">Region</span><br />
<span itemprop="postalCode">Postcode</span><br />
<span itemprop="addressCountry">Country</span>
</p>
<p><a itemprop="maps" href="http://maps.google.co.uk/blahblah">Map</a></p>
<p>Telephone: <span itemprop="telephone">01234 567890</span><br />
Fax: <span itemprop="faxNumber">01234 567890</span><br />
Email: <span itemprop="email">email@domain.co.uk</span><br />
<a href="http://www.domain.co.uk" itemprop="url">http://www.domain.co.uk</a></p>
<!-- itemprop="branchOf" -->
</article>
</section>
</body>
在我目前拥有的地方<!-- itemprop="branchOf" -->
,我相信我需要将LocalBusiness
es 与Corporation
页面前面提到的相关联。
我该怎么做?可以为此使用元素ID吗?
谢谢。