hcard-complete-example: Difference between revisions
JamieKnight (talk | contribs) m (→Address (ADR)) |
JamieKnight (talk | contribs) m (→Address (ADR)) |
||
Line 10: | Line 10: | ||
this is a complete example of a adr subsection inside a div element. | this is a complete example of a adr subsection inside a div element. | ||
[[code]] | |||
<div class="adr" > | <div class="adr" > | ||
Line 23: | Line 23: | ||
</div> | </div> | ||
[[code]] | |||
hCard mimics vCard in the ability to have multiple addresses (adr) defined. for example "work, home, ect" this is represented in the types attribute as follows: | hCard mimics vCard in the ability to have multiple addresses (adr) defined. for example "work, home, ect" this is represented in the types attribute as follows: | ||
[[code]] | |||
<span class="type" >home</span> | <span class="type" >home</span> | ||
[[code]] | |||
or, to represent work | or, to represent work | ||
[[code]] | |||
<span class="type" >work</span> | <span class="type" >work</span> | ||
[[code]] |
Revision as of 23:36, 17 February 2007
An example of a hCard using all available vCard properties
this is the start of a page being worked on by JamieKnight and vbgunz (VictorGonzalez) with the aim to markup and explain and example, which will use all the available properties of hCard from the cheat sheet, and the vCard specification. this page is ongoing.
Address (ADR)
this is a complete example of a adr subsection inside a div element.
<div class="adr" > <span class="type" >home</span> <span class="post-office-box" >9890</span> <span class="street-address" title="*">2 example road </span> <span class="extended-address" >flat 7a </span> <span class="region" >region name</span> <span class="locality" >locality name </span> <span class="postal-code" >TA2 6HU </span> <span class="country-name" >United Kingdom </span> </div>
hCard mimics vCard in the ability to have multiple addresses (adr) defined. for example "work, home, ect" this is represented in the types attribute as follows:
code <span class="type" >home</span> code
or, to represent work