hcard-profile: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
Line 4: Line 4:


== Profile ==
== Profile ==
<pre>
<dl class="profile">
<dl class="profile">
  <dt>class</dt>
  <dt>class</dt>
Line 221: Line 220:
  </dd>
  </dd>
</dl>
</dl>
</pre>

Revision as of 22:17, 1 August 2005

hCard Profile

The following is an XMDP profile for the hCard specification.

Profile

class

<a rel="help" href="http://www.w3.org/TR/html401/struct/global.html#adef-class"> HTML4 definition of the 'class' attribute.</a> This meta data profile defines some 'class' attribute values (class names) and their meanings as suggested by a <a href="http://www.w3.org/TR/WD-htmllink-970328#profile"> draft of "Hypertext Links in HTML"</a>. All values are defined according to the semantics defined in the <a href="http://microformats.org/wiki/hcard"> hCard specification</a> and thus in <a href="http://www.ietf.org/rfc/rfc2426.txt">RFC 2426</a>.

vcard
A container for the rest of the class names defined in this XMDP profile. See section 1. of RFC 2426.
fn
See section 3.1.1 of RFC 2426.
n
See section 3.1.2 of RFC 2426. May be inferred per Implied "N" Optimization.
family-name
See "Family Name" in section 3.1.2 of RFC 2426.
given-name
See "Given Name" in section 3.1.2 of RFC 2426.
additional-names
See "Additional Names" in section 3.1.2 of RFC 2426. Typically used with <ul> or <ol> elements, with an <li> for each additional name.
honorific-prefixes
See "Honorific Prefixes" in section 3.1.2 of RFC 2426. Typically used with <ul> or <ol> elements, with an <li> for each honorific prefix.
honorific-suffixes
See "Honorific Suffixes" in section 3.1.2 of RFC 2426. Typically used with <ul> or <ol> elements, with an <li> for each honorific suffix.
nickname
See section 3.1.3 of RFC 2426.
photo
See section 3.1.4 of RFC 2426. Typically used with an <img> tag. Use the 'src' attribute for URI values. Use the 'data:' URI scheme for binary values.
bday
See section 3.1.5 of RFC 2426. Typically used with an <abbr> tag with the 'title' attribute for the date value, and a human readable date inside the element.
adr
See section 3.2.1 of RFC 2426.
post-office-box
See "post office box" in section 3.2.1 of RFC 2426.
extended-address
See "extended address" in section 3.2.1 of RFC 2426.
street-address
See "street address" in section 3.2.1 of RFC 2426.
locality
See "locality" in section 3.2.1 of RFC 2426.
region
See "region" in section 3.2.1 of RFC 2426.
postal-code
See "postal code" in section 3.2.1 of RFC 2426.
country-name
See "country name" in section 3.2.1 of RFC 2426.
dom
intl
postal
parcel
Use on an element inside an element with a class name of "adr", or "label" to indicate the type of the adr or label per the definitions of these types in section 3.2.1 and 3.2.2 respectively of RFC 2426.
home
work
Use on an element inside an element with a class name of "adr", "label", or "tel" to indicate the type of the adr, label, or tel per the definitions of these types in sections 3.2.1, 3.2.2, and 3.3.1 respectively of RFC 2426.
pref
Use on an element inside an element with a class name of "adr", "label", "tel", or "email" to indicate the "pref" type of the adr, label, tel, or email per the definitions of "pref" in sections 3.2.1, 3.2.2, 3.3.1, 3.3.2 respectively of RFC 2426.
label
See section 3.2.2 of RFC 2426.
tel
See section 3.3.1 of RFC 2426.
msg
voice
fax
cell
video
pager
bbs
modem
car
isdn
pcs
Use on an element inside an element with a class name of "tel" to indicate the type of the tel per the definitions of these types in section 3.3.1 of RFC 2426.
email
See section 3.3.2 of RFC 2426.
internet
x400
Use on an element inside an element with a class name of "email" to indicate the type of the email per the definitions of these types in section 3.3.2 of RFC 2426.
mailer
See section 3.3.3 of RFC 2426.
tz
See section 3.4.1 of RFC 2426. Typically used with an <abbr> tag with the 'title' attribute for the tz value, and a human readable time zone inside the element.
geo
See section 3.4.2 of RFC 2426.
latitude
See "latitude" in section 3.4.2 of RFC 2426.
longitude
See "longitude" in section 3.4.2 of RFC 2426.
title
See section 3.5.1 of RFC 2426.
role
See section 3.5.2 of RFC 2426.
logo
See section 3.5.3 of RFC 2426. Typically used with an <img> tag. Use the 'src' attribute for URI values. Use the 'data:' URI scheme for binary values.
agent
See section 3.5.4 of RFC 2426. If the value is a vCard, then use a nest hCard. For simplicity in that case, the same element that has the class name of "agent" should use the class name of "vcard".
org
See section 3.5.5 of RFC 2426.
organization-name
See "Organization Name" in section 3.5.5 of RFC 2426. May be inferred per Implied "organization-name" Optimization.
organization-unit
See "Organization Unit" in section 3.5.5 of RFC 2426.
categories
See section 3.6.1 of RFC 2426. Typically used with an <ul> tag. Thus individual categories should be marked up with <li> tags.
note
See section 3.6.2 of RFC 2426.
rev
See section 3.6.4 of RFC 2426. Typically used with an <abbr> tag with the 'title' attribute for the date value, and a human readable date inside the element.
sort-string
See section 3.6.5 of RFC 2426.
sound
See section 3.6.6 of RFC 2426. Typically used with either an <a> or <object> tag. Use the 'data:' URI scheme for binary values.
uid
See section 3.6.7 of RFC 2426.
url
See section 3.6.8 of RFC 2426. Typically used with an <a> tag.
class
See section 3.7.1 of RFC 2426.
key
See section 3.7.2 of RFC 2426. Typically used with an <abbr> tag with the 'title' attribute for the key value, and a human readable key equivalent inside the element.