« how the h tags should play together | Main | Microformat support in ie8 »

hCard essentials

You can code your own hCard very easily. There are two requirements:

  1. Contact information must be contained within a page element that has the id="vcard" and a unique class
  2. The full name of the person or organization must be identified with class="fn" or class="org fn"

If you want to add more information to an hCard, follow these guidelines:

Description hCard identifier
Full Name is defined as one given name and one family name. class="fn"
Given name class="given-name"
Additional (Middle) name class="additional-name"
Family name class="family-name"
Profile photograph must be used on an img tag img class="photo fn"
Related website a class="url fn"
Organization a class="org"
E-mail a class="email"
Address class="adr"
Address tags may contain other tags class="street-address" or
class="locality" (city) or
class="region" (state) or
class="postal-code" or
class="country-name"
Telephone class="tel"

Additional Resources

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.