hcard-cheatsheet

From Microformats Wiki
Revision as of 18:55, 28 November 2006 by AndyMabbett (talk | contribs) (→‎Key: more)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

hCard cheetsheet

Properties

  • class="vcard" (1)
    • class="adr"
      • class="type" [work|home|pref|postal|dom|intl]
      • class="post-office-box"
      • class="street-address"
      • class="extended-address"
      • class="region"
      • class="locality"
      • class="postal-code"
      • class="country-name"
    • class="agent"
    • class="bday" (ISO date)
    • class="class" – confidentiality/access classification of the entire hCard
    • class="category"
    • class="email"
      • class="type"
      • class="value"
    • class="fn" (1)
    • class="geo"
      • class="latitude"
      • class="longitude"
    • class="key"
    • class="label"
    • class="logo"
    • class="mailer"
    • class="n"
      • class="honorific-prefix"
      • class="given-name"
      • class="additional-name"
      • class="family-name"
      • class="honorific-suffix"
    • class="nickname"
    • class="note"
    • class="org"
      • class="organization-name"
      • class="organization-unit"
    • class="photo"
    • class="rev" – datetime of the revision of the entire hCard
    • class="role"
    • class="sort-string"
    • class="sound"
    • class="title"
    • class="tel" (Note E.123 for formatting info.)
      • class="type" [home|work|pref|fax|cell|pager]
      • class="value"
    • class="tz" – timezone of the person
    • class="uid" – applies to the entire hCard
    • class="url"

Key

1 - Single occurrence required
2 - One or more, required (n/a)
3 - single occurrence optional
4 - zero or more occurrence
[square brackets] - common list of values
(data format)
pref = preferred
dom = domestic
intl = international
cell = mobile

Notes

  • URL in vCard becomes <a class="url" href="...">...</a> inside the element with class="vcard" in hCard.
  • Similarly, EMAIL in vCard becomes <a class="email" href="mailto:...">...</a>
  • PHOTO in vCard becomes <img class="photo" src="..." alt="Photo of ..." /> or <object class="photo" data="..." type="...">Photo of ...</object>
  • UID in vCard simply becomes another semantic applied to a specific URL (or EMAIL) for an hCard.

Related pages

The hCard specification is a work in progress. As additional aspects are discussed, understood, and written, they will be added. These thoughts, issues, and questions are kept in separate pages.