hcard-examples-rfc2426: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→2.4.2 VCARD) |
||
Line 19: | Line 19: | ||
</nowiki></pre> | </nowiki></pre> | ||
This vCard fragment has one property whose value is another vCard, and ould be represented as an hCard fragment with an embedded hCard, literally (with the unnecessary type=internet default omitted, and the implied n optimization): | |||
<pre><nowiki> | <pre><nowiki> | ||
Line 47: | Line 47: | ||
this hCard could be displayed as: | this hCard could be displayed as: | ||
[mailto:jfriday@host.com Joe Friday] | [mailto:jfriday@host.com Joe Friday]<br /> | ||
+1-919-555-7878 | +1-919-555-7878<br /> | ||
Area Administrator, Assistant | Area Administrator, Assistant | ||
Revision as of 01:30, 14 August 2005
hCard examples
Example hCards.
Authors
- Tantek Çelik
- Brian Suda
RFC 2426 examples in hCard
- In the process of creating 1:1 hCard examples for each example in RFC 2426.
2.4.2 VCARD
AGENT:BEGIN:VCARD\nFN:Joe Friday\nTEL:+1-919-555-7878\n TITLE:Area Administrator\, Assistant\n EMAIL\;TYPE=INTERNET:\n jfriday@host.com\nEND:VCARD\n
This vCard fragment has one property whose value is another vCard, and ould be represented as an hCard fragment with an embedded hCard, literally (with the unnecessary type=internet default omitted, and the implied n optimization):
<div class="agent"> <div class="vcard"> <a class="email" href="mailto:jfriday@host.com"> <span class="fn">Joe Friday</span> </a> <div class="tel">+1-919-555-7878</div> <div class="title">Area Administrator, Assistant</div> </div> </div>
The outer agent & vcard spans can be easily collapsed, and email and fn can also be collapsed to use a single element as such:
ISSUE: Should we bother with showing simplification steps for the RFC 2426 examples in hCard? Or just show the simplified end result? And optionally show the derivation(s) on a separate page?
<div class="agent vcard"> <a class="email fn" href="mailto:jfriday@host.com">Joe Friday</a> <div class="tel">+1-919-555-7878</div> <div class="title">Area Administrator, Assistant</div> </div>
this hCard could be displayed as:
Joe Friday
+1-919-555-7878
Area Administrator, Assistant
3.1.1 FN Type Definition
FN:Mr. John Q. Public\, Esq.
this vCard fragment as an hCard fragment:
<span class="fn">Mr. John Q. Public, Esq.</span>
Other
- See hcard-brainstorming for more examples (which may eventually be moved here) and analysis.