Can you put schema.org markup in <p> tags?

Im implements schema.org markup on the contact page of a website to structure the name, address, phone number and email address.

To format it, I wrapped parts of it in <p> tags. Will this invalidate the schema.org markup?

Here's what it looked like before the p tags:

 <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 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> 
+4
source share
1 answer

Yes, the Microdata specification gives examples that have the same structure of <span> tags embedded in <p> tags.

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

+3
source

Source: https://habr.com/ru/post/1444341/


All Articles