Mobile app version of vmapp.org
Login or Join
BetL925

: Can I enrich Microdata format with more non-Microdata data without affecting its functionality? This is the normal formatting for Microdata: <div itemscope itemtype="http://schema.org/LocalBusiness">

@BetL925

Posted in: #Html5 #Microdata

This is the normal formatting for Microdata:

<div itemscope itemtype="http://schema.org/LocalBusiness">
<div itemprop="name">some text</div>
<div itemprop="description">some description</div>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">Rosary Arms 12</span>
<span itemprop="postalCode">90210</span>
<span itemprop="addressLocality">Beverly Hills</span>
<span itemprop="addressRegion">San Fransisco</span>
<span itemprop="addressCountry">USA</span>
</div>
</div>


Now, when a users searches for all businesses in San Fransisco, I want to format each result with this Microdata (I'm assuming this is allowed btw and not that Google only accepts 1 Microdata 'instance' on a page).

But in the search result of 1 result I have more data than is currently needed for Microdata. For example, I have 3 images per search result, rates of this business, opening hours and much more.
Now I was wondering if I can just place this extra data within this microdata without affecting its functionality, for example:

<div itemscope itemtype="http://schema.org/LocalBusiness">
<div itemprop="name">some text</div>
<div class="businesspreviewthumbs">
<img src="/images/1.png" />
<img src="/images/2.png" />
<img src="/images/3.png" />
</div>
<div class="rates">
<span>Hourrate: 0</span>
</div>
<div itemprop="description">some description</div>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">Rosary Arms 12</span>
<span itemprop="postalCode">90210</span>
<span itemprop="addressLocality">Beverly Hills</span>
<span itemprop="addressRegion">San Fransisco</span>
<span itemprop="addressCountry">USA</span>
</div>
<div>
<p>Opening hours:<br/>
Monday-Friday: 8AM - 6PM<br/>
Saturday: 10AM - 5PM<br/>
Sunday:Closed<br/>
</p>
</div>
</div>

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

1 Comments

Sorted by latest first Latest Oldest Best

 

@Hamaas447

Yes! Parsers only look for the elements not the existence of additional classes or attributes.

Go nuts!

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme