hcard-examples-rfc2426: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
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):
This vCard fragment has one property whose value is another vCard, and could 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>
<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>
</nowiki></pre>
 
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?


<pre><nowiki>
<pre><nowiki>

Revision as of 09:34, 20 August 2005

hCard examples

Example hCards.

Authors

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 could 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 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