Uncategorized

hCard… sharing contact information

hCard is a simple, open, distributed format for representing people, companies, organizations, and places, using a 1:1 representation of vCard (RFC2426) properties and values in semantic HTML or XHTML. hCard is one of several open microformat standards suitable for embedding in HTML, XHTML, Atom, RSS, and arbitrary XML.

This is how the HTML code for my contact information would look in hCard format.

<div id="hcard-Peter-Andreas-Molgaard" class="vcard">
  <a class="url fn n" href="http://www.hellogroup.com">
    <span class="given-name">Peter</span>
    <span class="additional-name">Andreas</span>
    <span class="family-name">Molgaard</span>
  </a>
  <div class="org">Hello Group A/S</div>
  <div class="adr">
    <div class="street-address">Fredericiagade 15</div>
    <span class="locality">Copenhagen K.</span>
    <span class="region">Copenhagen</span>
    <span class="postal-code">1310</span>
    <span class="country-name">Denmark</span>
  </div>
 <div class="tel">+4542133417</div>
</div>

Read more about the hCard format here…
http://microformats.org/wiki/hcard

…and read more about MicroFormats in general here…
http://microformats.org/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s