hcard-cheatsheet

From Microformats Wiki
hcard-cheatsheet /
Revision as of 22:11, 26 November 2006 by JulianStahnke (talk | contribs)
Jump to navigation Jump to search
  • class="vcard"
    • 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="" (ISO date)
    • class="" – confidentiality/access classification of the entire hCard
    • class="category"
    • class="email"
      • class="type"
      • class="value"
    • class=""
    • class="Geo"
      • class="latitude"
    • class="longitude"
    • class="key"
    • class="label"
    • class="logo"
    • class="mailer"
    • class=""
      • 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="" – datetime of the revision of the entire hCard
    • class="role"
    • class=""
    • class="sound"
    • class="title"
    • class="tel"
      • class="type" [home|work|pref|fax|cell|pager]
      • class="value"
    • class="" – timezone of the person
    • class="" – applies to the entire hCard
    • class="url"
Key
Single occurrence required
One or more, required
single occurrence optional
zero or more occurrence
[common list of values]
(data format)

  • 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.