So I'm trying to mark up some microdata using a combination of the contact vcard microformat and the microdata format for places from:
I'd love to do both at once, but I have a problem that I don't know whether microdata schemas require exact duplication of html, or whether they're entirely reliant on the attributes that they suggest. Does anyone familiar with using microdata know whether the structure of the html is important to the schema?
Here is my current html attempt just as an example if it helps ??clarify?? (with php variables escaped out into the html):
<div id='contact'>
<h4 class='title' style='text-align:center;margin-top:1em'>Main Contact Info</h4>
<div style='margin:0 1em;border:1px solid grey;padding:1em;width:45%' id="hcard-Sherman-Brothers" class="vcard" itemscope itemtype="http://schema.org/LocalBusiness">
<div class="org" itemprop="name">
ShermanBrothers in <?php h($row_rsLocation['City']);?>
</div>
<address class="adr" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress" style='display:block'>
<div itemprop="streetAddress" class="street-address">
<?php echo $row_rsLocation['Address1'];
if (!empty($row_rsLocation['Address2'])) {
echo '<br>'.$row_rsLocation['Address2'];
}
?>
</div>
<span class="locality" itemprop="addressLocality"><?php h($row_rsLocation['City']);?></span>,
<span class="region" itemprop="addressRegion"><?php h($row_rsLocation['State']);?></span>,
<span class="postal-code"><?php h($row_rsLocation['ZipCode']);?></span>
<span class="country-name">USA</span>
</address>
<a itemprop="telephone" href='tel:<?php h($row_rsLocation['Phone']);?>' class="tel"><?php h($row_rsLocation['Phone']);?></a>
</div><!-- End of vcard class -->
</div><!-- End of contact div -->