Semantic markup for an address using microformats

I read microformats for my markup of addresses on the sites I'm building, the general consensus is to mark the address like this ...

<h1 class="org">Orpheum Theatre</h1>
Madison, WI
<div class="address">
    <div class="adr">
        <div class="street-address">216 State St</div>,
        <span class="locality">Madison</span>,
        <span class="region">WI</span>
        <span class="postal-code"> 53703</span>
        <span class="country">United States</span>
    </div>
</div> 

What interests me is why the combination and coincidence of div / span tags? does it matter or is the only real thing about class tags?

thank

+3
source share
3 answers

Perhaps you should take a look at http://schema.org/ . They have a different approach, which is supported by large search engines. There are also links to various testing tools to make sure that you format the format correctly.

+2
source
0

The markup doesn't matter, just the class names. Most microformat examples are executed using div and span and blagh. I prefer ulfor my hcards. It is easy.

0
source

All Articles