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>
  <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 class="tel">+4542133417</div>

Read more about the hCard format here…

…and read more about MicroFormats in general here…

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s