Search code examples
csshtmlseomicroformats

Semantic markup for address using Microformats


I've been reading up on microformats for my address markup on sites I build, the general consensus is to mark the address up like so...

<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 I'm wondering is why the mix and match of div/span tags? does it matter or is the only real important thing the class tags?

Thanks


Solution

  • You might want to have a look at http://schema.org/. They have a different approach that is supported by major search engines. Also there are links to various testing tools to make sure you get the format right.