4

我正在网站上的联系页面上实现 schema.org 标记,以构建公司名称、地址、电话号码和电子邮件。

为了格式化它,我将它的一部分包装在<p>标签中。这会使 schema.org 标记无效吗?

p这是标签之前的样子:

<div itemscope itemtype="http://schema.org/LocalBusiness">
<span itemprop="name">Acne co</span>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
 <span itemprop="streetAddress">123 street</span>
 <span itemprop="addressLocality">London</span>,
 <span itemprop="addressRegion"></span>
 <span itemprop="postalCode">N64TF</span>
   </div>
   <span itemprop="telephone">02083548800</span>
   <span itemprop="email">studio@acne.co.uk</span>
</div> 

这是之后的样子:

<div itemscope itemtype="http://schema.org/LocalBusiness"> 
<p class="title">
     <span itemprop="name">Acne co</span>
   </p>

     <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
   <p>
     <span itemprop="streetAddress">123 street</span><br />
     <span itemprop="addressLocality">London</span>, <span itemprop="postalCode">N64TF</span>
   </p>
   </div>

   <p>
   <span itemprop="telephone">02083548800</span><br />
   <span itemprop="email">studio@acne.co.uk</span>
   </p>
</div> 
4

1 回答 1

3

是的,微数据规范给出了<span>嵌套在<p>标签内的标签结构相同的示例。

见:http ://www.w3.org/TR/2011/WD-microdata-20110405/#the-basic-syntax

于 2012-11-07T21:14:22.143 回答