[英]Can you wrap schema.org markup in <p> tags?
I'm implementing schema.org markup on a contact page on a website to structure the bussiness name, address, phone number and email. 我正在网站的联系页面上实现schema.org标记,以构建商业名称,地址,电话号码和电子邮件。
To format it I've wrapped parts of it in <p>
tags. 为了格式化它,我用<p>
标签包装了它的一部分。 Will this invalidate the schema.org markup? 这会使schema.org标记失效吗?
Here is what it looked like before the p
tags: 这是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>
and here is what it looks like after: 以下是它的样子:
<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>
Yes, the Microdata specification gives examples which have the same structure of <span>
tags nested inside <p>
tags. 是的,Microdata规范给出了嵌套在<p>
标签内的<span>
标签结构相同的示例。
See: http://www.w3.org/TR/2011/WD-microdata-20110405/#the-basic-syntax 请参阅: http : //www.w3.org/TR/2011/WD-microdata-20110405/#the-basic-syntax
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.