1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

HTML5 Postal Address Microdata

Discussion in 'Microdata' started by sixrfan, Oct 12, 2011.

  1. #1
    I'm a little confused about setting up HTML5 Microdata for a postal address.

    If I wanted to wrap an address in microdata, would I use:

    Version 1
    
    <div itemscope itemtype="http://data-vocabulary.org/Organization"> 
       <div itemprop="address" itemscope itemtype="http://data-vocabulary.org/Address">
         <span itemprop="street-address">123 Fake St</span>, 
         <span itemprop="locality">Philadelphia</span>, 
         <span itemprop="region">PA</span> 
         <span itemprop="postal-code">12345</span>
       </div><! -- END ITEMPROP DIV --->
     
       Call us at: <span itemprop="tel">555-555-5555</span>
    
    </div><! -- END ITEMSCOPE DIV --->
    
    Code (markup):
    or

    Version 2
    
    <div itemprop="address" itemscope itemtype="http://data-vocabulary.org/Address">
         <span itemprop="street-address">123 Fake St</span>, 
         <span itemprop="locality">Philadelphia</span>, 
         <span itemprop="region">PA</span> 
         <span itemprop="postal-code">12345</span>
    </div><! -- END ITEMPROP DIV --->
     
     Call us at: <span itemprop="tel">555-555-5555</span>
    
    Code (markup):
     
    sixrfan, Oct 12, 2011 IP
  2. bhavatmaj

    bhavatmaj Well-Known Member

    Messages:
    319
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    consider using http://schema.org/
    as it is used by most of search engines- google, bing, yahoo
     
    bhavatmaj, Oct 15, 2011 IP