<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AzulMarino</id>
	<title>Microformats Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AzulMarino"/>
	<link rel="alternate" type="text/html" href="https://microformats.org/wiki/Special:Contributions/AzulMarino"/>
	<updated>2026-04-20T16:24:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://microformats.org/wiki/index.php?title=User:AzulMarino&amp;diff=33816</id>
		<title>User:AzulMarino</title>
		<link rel="alternate" type="text/html" href="https://microformats.org/wiki/index.php?title=User:AzulMarino&amp;diff=33816"/>
		<updated>2007-12-05T11:56:09Z</updated>

		<summary type="html">&lt;p&gt;AzulMarino: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See hcard and geo microformats implemented at [http://senda.miarroba.com my web site].&lt;br /&gt;
&lt;br /&gt;
[http://mentoliptus.blogspot.com My blog] uses rel-tags.&lt;/div&gt;</summary>
		<author><name>AzulMarino</name></author>
	</entry>
	<entry>
		<id>https://microformats.org/wiki/index.php?title=hcard-implementations&amp;diff=23920</id>
		<title>hcard-implementations</title>
		<link rel="alternate" type="text/html" href="https://microformats.org/wiki/index.php?title=hcard-implementations&amp;diff=23920"/>
		<updated>2007-12-05T11:44:27Z</updated>

		<summary type="html">&lt;p&gt;AzulMarino: /* Firefox extension */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;hCard Implementations&amp;lt;/h1&amp;gt;&lt;br /&gt;
{{TOC-right}}&lt;br /&gt;
&lt;br /&gt;
This page is an '''informative''' section of the [[hcard|hCard specification]].&lt;br /&gt;
&lt;br /&gt;
The following implementations have been developed which either generate or parse [[hcard|hCards]]. If you have such an hCard implementation, feel free to add it to '''the top''' of the New Implementations section. If you have a page or site which just ''publishes'' hCards, please use [[hcard-examples-in-wild]] instead.&lt;br /&gt;
&lt;br /&gt;
== New Implementations ==&lt;br /&gt;
Add new implementations here for evaluation and classification into the below taxonomy of implementations.&lt;br /&gt;
* [[org.microformats.hCard]] - java hCard parser and creator.&lt;br /&gt;
* [http://mobileonlinebusiness.com.au/uf/vCard_to_hCard_converter.html Mobile Online Business' vCard to hCard converter]&lt;br /&gt;
*[http://www.jamplanet.com Jam] is an active address book extension for Firefox/Flock. Jam imports Vcard and various CSV formats, and can output contacts in Vcard and hCard format.&lt;br /&gt;
*The &amp;quot;[http://typo3.org/extensions/repository/view/tt_address/2.0.1/ tt_address]&amp;quot; extension for [http://www.typo3.com TYPO3] supports hCard since the latest release, v2.0.0 &lt;br /&gt;
*[https://addons.mozilla.org/firefox/4106/ Operator] lets you combine pieces of information on Web sites with applications in ways that are useful. (Firefox-plugin)&lt;br /&gt;
*[http://rafaeloliveira.net/labs/hcard_creator.zip Wordpress hCard Creator] - I've made this simple plugin for wordpress. It adds the hCard Options submenu at Options menu, where you can create a simple hCard and put it on your blog using &amp;lt; ?php hcard_creator() ?&amp;gt; to show it. Also, it is possible to show an &amp;quot;export to vCard&amp;quot; link, which uses Brian Suda X2V. (Got send an e-mail to him regarding this)&lt;br /&gt;
*[http://www.alexa.com/site/devcorner/hcard Alexa hcard search]&lt;br /&gt;
*[http://leftlogic.com/lounge/articles/microformats_bookmarklet/ Microformats Bookmarklet] is a bookmarklet designed for IE6 and IE7, Firefox, Safari, Opera and Camino, that overlays on the current page to allow users to import individual hCards or hCalendars.  Written by Remy Sharp.&lt;br /&gt;
*[http://domanske.de/2006/09/vcardexplorer-04/ vCardExplorer] is a Mac OS X Application, that displays VCF-Files and extracts hCards from Websites written by [http://vcardexplorer.corefault.de Daniel Kagemann].&lt;br /&gt;
* [http://placenamehere.com/mf/nnwextract/ Extract Microformats] is a script for NetNewsWire that supports extracting hCard and hCalendar data in blog posts (via technorati service). Written by [[User:ChrisCasciano|Chris Casciano]]&lt;br /&gt;
* [http://allinthehead.com/hkit/ hKit] is an open source PHP 5 parsing library with support for hCard.&lt;br /&gt;
* [http://kitchen.technorati.com/search Technorati Microformats Search] indexes [[hcard|hCard]], [[hcalendar|hCalendar]], and [[hreview|hReview]] as [http://tantek.com/log/2006/05.html#d31t1802 announced by Tantek].&lt;br /&gt;
** list of pages with indexing Issues so they can be looked into as to why data is not being extracted&lt;br /&gt;
** suda.co.uk/contact&lt;br /&gt;
** multipack.co.uk&lt;br /&gt;
* [http://www.webstandards.org/action/dwtf/microformats/ Dreamweaver Extension suite] from the [http://webstandards.org/ Web Standards Project] enables the authoring of hCards from within Dreamweaver 8.&lt;br /&gt;
* [http://scooch.gr0w.com/ Scooch] is a slide show and presentation creator that generates a [[hCard]] for individual slide show authors and comment authors with a CSS button to parse and download via [http://suda.co.uk/projects/X2V/ X2V]. Also uses [[hReview]] for slide ratings and [[rel-tag]] for categories.&lt;br /&gt;
* [http://blog.codeeg.com/2006/03/20/flock-tails-flocktails/ Flocktails] - port of Tails extension for Flock 0.5.12 that looks for hCards, hCalendar, xFolk and hReview and tosses them into a handy topbar&lt;br /&gt;
*[http://opensource.reevoo.com/2006/03/08/release-uformats-12/ uformats] is a ruby library that can parse [[hCalendar]], [[hCard]], [[hReview]] and [[rel-tag]]&lt;br /&gt;
* [http://blog.codeeg.com/tails-firefox-extension-03/ Tails] is a Firefox Extension that will display the presence and details of microformats ([[hcard|hCard]], [[hcalendar|hCalendar]], [[hreview|hReview]], [[xfolk|xFolk]]) on a webpage. [https://addons.mozilla.org/firefox/2240/ Tails Export] is an extended version.&lt;br /&gt;
* [http://www.stripytshirt.co.uk/features/firefox/smartzilla Smartzilla is a Firefox Extension] that finds hCards on web pages and lets you add them to your addressbook.&lt;br /&gt;
* [http://placenamehere.com/TXP/pnh_mf/ pnh_mf] is a plugin for [http://textpattern.com/ Textpattern] that supports embedding hCard and other microformats in templates and blog posts. Written by [http://placenamehere.com/ Chris Casciano].&lt;br /&gt;
* There is [http://flickr.com/photos/factoryjoe/68755089/ evidence of built-in hCard support in the Konqueror browser].  Specifically, Konqueror 3.5, in KDE 3.5 (kubuntu Breezy w/ update).&lt;br /&gt;
* There is [http://tagcamp.org/index.cgi?ContactList evidence of a kwiki plugin for hCards].  Update: the [http://svn.kwiki.org/cwest/Kwiki-hCard/ hCard kwiki plugin svn repository].  See the [http://microwiki.caseywest.com/index.cgi?hCard documentation of the hCard kwiki plugin].&lt;br /&gt;
* [http://suda.co.uk/projects/X2V/ X2V] is a bookmarklet that parses hCard and produces a .vcf (vCard) stream.  Note: needs to be updated as the spec is refined.&lt;br /&gt;
* [http://www.stripytshirt.co.uk Duncan Walker] has built [http://www.stripytshirt.co.uk/features/firefox/smartzilla a Firefox extension] that gets hCard data from a webpage, uses Brian Suda's XSL (locally) to transform it to vcard format and opens the resulting .vcf file.&lt;br /&gt;
* [http://george.hotelling.net/90percent/ George] has written a [http://george.hotelling.net/90percent/geekery/greasemonkey_and_microformats.php Greasemonkey user script] that detects hCards and allows users to easily add them to their address book application.  Relies on the X2V web service to do the conversion.&lt;br /&gt;
* [http://inside.glnetworks.de/ Martin Rehfeld] has updated the work of [http://blogmatrix.blogmatrix.com/ David Janes] and produced a [[Greasemonkey]] [http://inside.glnetworks.de/2006/06/05/microformats-have-arrived-in-firefox-15-greasemonkey-06/ script] that finds many microformat elements, including hCards, and [http://blog.davidjanes.com/mtarchives/2005_08.html#003379 provides a popup menu of actions]. The hCard to vCard conversion is done internally within the script. ''This will work with FireFox 1.5+/GreaseMonkey 0.6.4+ now.''&lt;br /&gt;
* [http://diveintomark.org/ Mark Pilgrim] has also written an [http://diveintomark.org/projects/greasemonkey/hcard/ hCard parser Greasemonkey user script].  It is self-contained and does not rely on the X2V web service.&lt;br /&gt;
* [http://www.oliverbrown.me.uk/2005/09/03/a-working-microformats-extension-to-simplexml/ Oliver Brown] has written an &amp;quot;extension&amp;quot; to [http://www.php.net/simplexml SimpleXML] that gives simple access to hCard information in PHP 5.&lt;br /&gt;
* [http://thedredge.org/ Andrew D. Hume] has built a system (Wordpress plugin?) for [http://thedredge.org/2005/06/using-hcards-in-your-blog/ using hCards in your blog] to represent people leaving comments on blog posts.&lt;br /&gt;
* [http://greenbytes.de/tech/webdav/rfc2629.xslt rfc2629.xslt] now attempts to generate hCard information ([http://ietf.org/rfc/rfc2629 RFC2629] is an XML format for authoring RFCs and Internet Drafts, see [http://greenbytes.de/tech/webdav/rfc2629xslt/rfc2629xslt.html example document])&lt;br /&gt;
* [http://tantek.com/microformats/buddylist2hcards.html iChat buddy list to hCards] - Open source AppleScript to automatically convert one's buddy list in the MacOSX iChat AIM client into a valid XHTML 1.0 Strict list of hCards. &lt;br /&gt;
* [http://dev.w3.org/cvsweb/2001/palmagent/ palmagent] is a collection of palmpilot and sidekick tools. It includes X2V derivatives xhtml2hcard.xsl and toICal.xsl plus some [http://dev.w3.org/cvsweb/2001/palmagent/hcardTest.html hcardTest] materials&lt;br /&gt;
* [http://www.openpsa.org/ OpenPsa 2.x] CRM application uses hCard for all person listings. The widget is [http://www.midgard-project.org/midcom-permalink-922834501b71daad856f35ec593c7a6d reusable across Midgard CMS]&lt;br /&gt;
* [http://www.metonymie.com Emiliano Martínez Luque] has written an experimental [http://www.metonymie.com/hCard_extract/app.html hCard finder and structured search application] that finds hCards within a given set of URLs and returns the ones that match the specified search criteria.&lt;br /&gt;
&amp;lt;!-- *  [http://randomchaos.com/microformats/base/ Microformat Base] is an open-source PHP microformat aggregation crawler, currently recognizing hReview, hCalendar, and hCard. down! --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Authoring==&lt;br /&gt;
Implementations you can use to author, create, and publish hCards.&lt;br /&gt;
&lt;br /&gt;
===Web-based Creators===&lt;br /&gt;
;hCard Creator : [http://microformats.org/code/hcard/creator hCard creator] ([[hcard-creator-feedback|hCard creator feedback]]) - create your own hCards.&lt;br /&gt;
; ... :&lt;br /&gt;
&lt;br /&gt;
===Blogging and CMS tools===&lt;br /&gt;
;Textpattern plug-in : &lt;br /&gt;
[http://euphemize.net/blog/plugins/textpattern/jmc_event_manager/ jmc_event_manager] is a plugin for [http://textpattern.com/ Textpattern] that outputs locations and events  in hCard (and hCalendar) formats. Written by [http://euphemize.net/ Joel Courtney].&lt;br /&gt;
; ... :&lt;br /&gt;
&lt;br /&gt;
===Browser scripts and plug-ins===&lt;br /&gt;
Browser plugins that work with existing authoring tools:&lt;br /&gt;
; Any browser with javascript and a little bit of CSS :  [http://microformats.org/code/hcard/creator microformats.org hCard creator]  (see also [http://tantek.com/ Tantek]'s original [http://tantek.com/microformats/hcard-creator.html hCard creator on tantek.com].&lt;br /&gt;
&lt;br /&gt;
===Desktop Authoring Tools===&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
==Search and Discovery==&lt;br /&gt;
* [http://kitchen.technorati.com/search Technorati Microformats Search] indexes [[hcard|hCard]], [[hcalendar|hCalendar]], and [[hreview|hReview]] as [http://tantek.com/log/2006/05.html#d31t1802 announced by Tantek]. &lt;br /&gt;
* [http://leftlogic.com/info/articles/microformats_bookmarklet Microformats Bookmarklet] is a bookmarklet designed for Safari (works in Firefox and Camino) that overlays on the current page to allow users to import individual [[hcard|hCards]] or [[hcalendar|hCalendars]]. Written by [http://leftlogic.com Remy Sharp].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- need to continue copy/rename some parallel implementations from [[hcalendar-implementations]] from here down --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Conversion and Import==&lt;br /&gt;
Implementations you can use to importing into an address book application, typically by converting hCard to vCard.&lt;br /&gt;
&lt;br /&gt;
===Web Services===&lt;br /&gt;
These return vCard (.vcf) and other contact formats for easy importing into typical address book programs or other processing.&lt;br /&gt;
* [http://www.tomota.de www.tomota.de] Online address book that allows to import, export and convert hCard into vCard, ldif, csv and plain text. &lt;br /&gt;
&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
===Firefox Greasemonkey Plugins===&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
===Aggregators===&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
==Browsing==&lt;br /&gt;
Implementations that detect, display and otherwise highlight hCards in pages.&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
===Firefox extension===&lt;br /&gt;
&lt;br /&gt;
[http://www.kaply.com/weblog/operator Operator] - This extension is casual-user, advanced-user and developer friendly. Very customizable and unobstrusive.&lt;br /&gt;
&lt;br /&gt;
===Flock extension===&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
==Open Source==&lt;br /&gt;
Open source libraries of hCard parsers and other related code for building hCard implementations. Note: it is very likely that above implementations may be duplicated in this section. That's ok.&lt;br /&gt;
* ...&lt;br /&gt;
;Javascript &lt;br /&gt;
: The [http://microformats.org/code/hcard/creator hCard creator] ([[hcard-creator-feedback|hCard creator feedback]]) is a very simple, yet illustrative, open source user interface / form / script which creates an hCard in real-time as you type in a set of contact information.&lt;br /&gt;
&lt;br /&gt;
; PHP : &lt;br /&gt;
* [[hKit]]&lt;br /&gt;
; Java :&lt;br /&gt;
* [[org.microformats.hCard]]&lt;br /&gt;
; Ruby :&lt;br /&gt;
: ...&lt;br /&gt;
; XSLT :&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
== Additional Applications ==&lt;br /&gt;
This section should probably be incorporated into [[hcard-brainstorming]].&lt;br /&gt;
&lt;br /&gt;
There are numerous potential additional uses and applications for hCards on the Web. The following are merely a few thoughts and possibilities that folks have come up with:&lt;br /&gt;
&lt;br /&gt;
* As an open standard/format for [http://www.gravatar.com/ Gravatars].&lt;br /&gt;
** Like [http://alper.nl/cgi-bin/OpenAvatar.py?url=http://tantek.com this].&lt;br /&gt;
** Wordpress plugin with hCard based replacement for gravatar is in the make. [[User:Alper|Alper]] 12:59, 8 Aug 2007 (PDT)&lt;br /&gt;
* Marking up individual authors of blog posts on a group blog&lt;br /&gt;
* Marking up people's names and URLs in a blogroll&lt;br /&gt;
* Any reference to people in blog posts (e.g. when citing them, or referencing them, or describing them, by name).&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
== Related Pages ==&lt;br /&gt;
{{hcard-related-pages}}&lt;/div&gt;</summary>
		<author><name>AzulMarino</name></author>
	</entry>
	<entry>
		<id>https://microformats.org/wiki/index.php?title=hcard-authoring&amp;diff=24109</id>
		<title>hcard-authoring</title>
		<link rel="alternate" type="text/html" href="https://microformats.org/wiki/index.php?title=hcard-authoring&amp;diff=24109"/>
		<updated>2007-12-05T11:30:04Z</updated>

		<summary type="html">&lt;p&gt;AzulMarino: /* Add To Address Book Links */  tip for index pages&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;hCard authoring&amp;lt;/h1&amp;gt;&lt;br /&gt;
{{TOC-right}}&lt;br /&gt;
This page contains useful tips and guidelines for how to author [[hcard|hCards]], either from scratch, or by adding markup to existing content.&lt;br /&gt;
&lt;br /&gt;
'''Goal:''' The goal of this document is to provide some good intuitive guidelines that should make it as easy and as quick as possible for any web author to create hCards or add hCard markup to existing content.&lt;br /&gt;
&lt;br /&gt;
'''Audience:''' Web authors, designers, IA's.  This document is written for easy consumption and understanding by any web designer who knows at least enough (X)HTML and CSS to use semantic HTML class names on elements (i.e. [[POSH]]) and write CSS selectors that apply styles to those class names.  Please help with clarifying/simplifying this document accordingly.&lt;br /&gt;
&lt;br /&gt;
'''Author(s):''' [[User:Tantek|Tantek Çelik]], [[User:MarkRickerby|Mark Rickerby]]&lt;br /&gt;
&lt;br /&gt;
== A 5 minute primer to using hCard ==&lt;br /&gt;
&lt;br /&gt;
Let's imagine a static page that contains some personal contact details, the main part of which looks something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;h2&amp;gt;Contact Me&amp;lt;/h2&amp;gt;&lt;br /&gt;
  &amp;lt;p&amp;gt;You can contact me via email to &lt;br /&gt;
   &amp;lt;a href=&amp;quot;mailto:jane@example.com&amp;quot;&amp;gt;jane@example.com&amp;lt;/a&amp;gt;, &lt;br /&gt;
   or send stuff to me at the following address:&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;p&amp;gt;255 Some Street,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Place,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Town&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This snippet has all the human readable information needed to produce a valid [[hcard|hCard]] representation - all that is necessary is to add some additional structure that defines each particular detail. The first thing to do is to add the &amp;lt;code&amp;gt;vcard&amp;lt;/code&amp;gt; wrapper class to the enclosing &amp;lt;code&amp;gt;div&amp;lt;/code&amp;gt;, which identifies this particular block as an [[hcard|hCard]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot; class=&amp;quot;vcard&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One thing that is noticeably missing from this snippet is the name of who these contact details apply to - this makes the information presented  more ambiguous and harder to understand. It's good to be explicit with such things, and it just so happens that the name property is a compulsory field within an [[hcard|hCard]] as well. So let's add it, using the &amp;lt;code&amp;gt;fn&amp;lt;/code&amp;gt; class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot; class=&amp;quot;vcard&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;h2&amp;gt;Contact Me&amp;lt;/h2&amp;gt;&lt;br /&gt;
   &amp;lt;h3 class=&amp;quot;fn&amp;quot;&amp;gt;Jane Doe&amp;lt;/h3&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;You can contact me via email to &lt;br /&gt;
    &amp;lt;a href=&amp;quot;mailto:jane@example.com&amp;quot;&amp;gt;jane@example.com&amp;lt;/a&amp;gt;, &lt;br /&gt;
    or reach me at the following address:&amp;lt;/p&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;255 Some Street,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Town,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Place&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another thing we can do to improve the semantics of the snippet is to mark up the address with &amp;quot;adr&amp;quot;, and use &amp;lt;code&amp;gt;div&amp;lt;/code&amp;gt; tags since its not really a paragraph. At the same time, we should also get rid of the [http://tantek.com/log/2002/10.html#L20021022t1432 bed &amp;amp; breakfast] markup in the second paragraph, replacing it with structured classnames for the components of a mailing address: &amp;lt;code&amp;gt;adr&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;street-address&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;locality&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;region&amp;lt;/code&amp;gt;. We can also add the &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; class to the mailto link, to complete the structure of the [[hcard|hCard]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot; class=&amp;quot;vcard&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;h2&amp;gt;Contact Me&amp;lt;/h2&amp;gt;&lt;br /&gt;
   &amp;lt;h3 class=&amp;quot;fn&amp;quot;&amp;gt;Jane Doe&amp;lt;/h3&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;You can contact me via email to &lt;br /&gt;
    &amp;lt;a class=&amp;quot;email&amp;quot; href=&amp;quot;mailto:jane@example.com&amp;quot;&amp;gt;jane@example.com&amp;lt;/a&amp;gt;, &lt;br /&gt;
    or reach me at the following address:&amp;lt;/p&amp;gt;&lt;br /&gt;
   &amp;lt;div class=&amp;quot;adr&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;div class=&amp;quot;street-address&amp;quot;&amp;gt;255 Some Street&amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;div class=&amp;quot;locality&amp;quot;&amp;gt;Some Town&amp;lt;div/&amp;gt;&lt;br /&gt;
     &amp;lt;div class=&amp;quot;region&amp;quot;&amp;gt;Some Place&amp;lt;/div&amp;gt;&lt;br /&gt;
   &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And that's all it takes!&lt;br /&gt;
&lt;br /&gt;
Aside from the advantages of having such structured visible data, providing these additional class names also increases the visual design possibilities.&lt;br /&gt;
&lt;br /&gt;
== Creating new hCards ==&lt;br /&gt;
Start with the [http://microformats.org/code/hcard/creator hCard creator], and for additional fields and properties (e.g. telephone numbers, instant messaging contacts), see the [[hcard-examples|hCard examples]] page.&lt;br /&gt;
&lt;br /&gt;
== Adding hCard markup to existing content ==&lt;br /&gt;
&lt;br /&gt;
=== Natural language hCard ===&lt;br /&gt;
&lt;br /&gt;
Perhaps you have a traditional prose description of yourself.  Start by reading Jeremy Keith's article  &amp;quot;[http://adactio.com/journal/1122/ Adactio: Journal - Natural language hCard]&amp;quot; which provides a nice succinct introduction in the art of adding hCard markup to an existing prose biography.&lt;br /&gt;
&lt;br /&gt;
=== Minimal Markup Changes ===&lt;br /&gt;
&lt;br /&gt;
When adding hCard to existing content, keep in mind that hCard was designed for semantically enhancing existing content without affecting its presentation (or minimally so).  Thus: change as little markup as possible.  If you want to fix various pages to be valid XHTML etc., that's fine.&lt;br /&gt;
&lt;br /&gt;
In all examples below where it says to add an element with class name of &amp;quot;&amp;lt;code&amp;gt;xyz&amp;lt;/code&amp;gt;&amp;quot;, first look for an existing element that precisely surrounds the necessary content. Re-use that element by simply adding the class name &amp;quot;&amp;lt;code&amp;gt;xyz&amp;lt;/code&amp;gt;&amp;quot; (meaning, add &amp;quot; xyz&amp;quot; (without quotes) to the element's existing class attribute, or add a new class attribute &amp;lt;code&amp;gt;class=&amp;quot;xyz&amp;quot;&amp;lt;/code&amp;gt; to elements without a class attribute).&lt;br /&gt;
&lt;br /&gt;
E.g. &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span class=&amp;quot;foo&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
would become:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span class=&amp;quot;foo xyz&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
would become:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span class=&amp;quot;xyz&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Find People or Organizations ===&lt;br /&gt;
Start with looking for all mentions of people or organizations on a page.  All of those are potential hCards.  Even more so if they are linked to their respective URLs (e.g. home pages / blogs).&lt;br /&gt;
&lt;br /&gt;
If a person (or organization, henceforth shortened to just &amp;quot;'''person/org'''&amp;quot;) is mentioned several times on a page, consider marking up the mention which is the most detailed, definitive, or otherwise thorough as an hCard.  Ideally you might want to mark up ''all'' instances of a person/org as hCards, but for now, just keep it simple and markup the most representative instance. (Perhaps the most &amp;quot;definitive&amp;quot; instance, which could also then be marked up with a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;dfn&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; element around the name of the person/org for additional semantic XHTML goodness.)&lt;br /&gt;
&lt;br /&gt;
=== Determine The Surrounding Element for Each ===&lt;br /&gt;
For each person/org that you want to turn into an hCard, find the smallest element that contains all the info about that person/org, and no info about any other person/org.&lt;br /&gt;
&lt;br /&gt;
Add the class name &amp;quot;&amp;lt;code&amp;gt;vcard&amp;lt;/code&amp;gt;&amp;quot; to that element.&lt;br /&gt;
&lt;br /&gt;
If there is no such element (perhaps the nearest enclosing element contains more than one person/org), then add a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;vcard&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;...&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; that wraps the info about about that person/org and just that person/org.&lt;br /&gt;
&lt;br /&gt;
The rest of the markup for this hCard MUST go ''inside'' that element with the class name &amp;quot;vcard&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== The Importance of Names ===&lt;br /&gt;
The name is the one required property of hCard.  Thus be sure to mark up the name of the person with the class name &amp;quot;fn&amp;quot;.  For names of people which are two simple words (text separated by space) and where the first word is their given name and the second word is their family name, the class name &amp;quot;fn&amp;quot; is sufficient. E.g. &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn&amp;quot;&amp;gt;Rohit Khare&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For people with middle names (e.g. &amp;quot;Håkon Wium Lie&amp;quot;), or with multi-word last names (e.g. &amp;quot;Thomas Vander Wal&amp;quot;), you must mark them up with the &amp;quot;n&amp;quot; property and its sub-properties &amp;quot;given-name&amp;quot; and &amp;quot;family-name&amp;quot;, e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn n&amp;quot; lang=&amp;quot;no&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;given-name&amp;quot;&amp;gt;Håkon&amp;lt;/span&amp;gt; &lt;br /&gt;
 &amp;lt;span class=&amp;quot;additional-name&amp;quot;&amp;gt;Wium&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;family-name&amp;quot;&amp;gt;Lie&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn n&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;given-name&amp;quot;&amp;gt;Thomas&amp;lt;/span&amp;gt; &lt;br /&gt;
 &amp;lt;span class=&amp;quot;family-name&amp;quot;&amp;gt;Vander Wal&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Organization hCards ====&lt;br /&gt;
&lt;br /&gt;
For hCards for organizations, be sure to put both the &amp;quot;fn&amp;quot; and &amp;quot;org&amp;quot; class names on the same element. Having those be the same is the hint to hCard consumers that the hCard represents an organization rather than a person. E.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn org&amp;quot;&amp;gt;Technorati&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Representative URLs ===&lt;br /&gt;
One of the most common patterns for person/orgs in web content is the name of the person/org, hyperlinked to their definitive/preferred web site.&lt;br /&gt;
&lt;br /&gt;
Blogrolls are a good example of this (see also [[xoxo|XOXO]]).&lt;br /&gt;
&lt;br /&gt;
Since the class attribute takes a space separated set of class names, one can often markup the URL on the same element as the name, e.g. &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://theryanking.com&amp;quot; class=&amp;quot;fn url&amp;quot;&amp;gt;Ryan King&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Markup as many URLs as you have for the person/org with the class name &amp;quot;&amp;lt;code&amp;gt;url&amp;lt;/code&amp;gt;&amp;quot;, e.g. URLs to social network and other online service profiles.&lt;br /&gt;
&lt;br /&gt;
If you are marking up an hCard on your own site, be sure to also add the [[xfn|XFN]] &amp;lt;code&amp;gt;rel=&amp;quot;me&amp;quot;&amp;lt;/code&amp;gt; attribute to indicate that those profile pages are additional facets of your online identity.  See &amp;lt;cite&amp;gt;[http://gmpg.org/xfn/and/#idconsolidation Identity consolidation with XFN]&amp;lt;/cite&amp;gt; for more details.&lt;br /&gt;
&lt;br /&gt;
=== Titles ===&lt;br /&gt;
If the person's job title is mentioned, mark it up with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;title&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Though typical vCards/hCards have only a single job title, if someone has several job titles listed say in a comma delimited list, just markup the whole lot of them with one big &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;title&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://tantek.com/microformats/2006/03-01-TechPlenAgenda.html W3C Technical Plenary Agenda] for examples of people with multiple titles.&lt;br /&gt;
&lt;br /&gt;
=== Other affiliations ===&lt;br /&gt;
As vCard seems to imply a model of a person only being associated with one organization (at least certainly that's how most [[vcard-implementations]] appear to be written), consider placing other affiliations and info about the person into &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;note&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; elements.  You can have more than one; converters will simply append them all in source order.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://tantek.com/microformats/2006/03-01-TechPlenAgenda.html W3C Technical Plenary Agenda] for examples of people with additional affiliations (such as W3C Working Groups) marked up inside &amp;quot;note&amp;quot; elements.&lt;br /&gt;
&lt;br /&gt;
Sometimes text in a document near a person/contact will explain *why* that person should be contacted.  Such information is also useful to have in a &amp;quot;note&amp;quot; element.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://rbach.priv.at/repos/misc/microformatting/ETech2006/invite.html O'Reilly ETech 2006 invite] for examples of people with additional &amp;quot;For ... &amp;quot; reasons marked up as &amp;quot;note&amp;quot; elements.&lt;br /&gt;
&lt;br /&gt;
=== Set the lang when different ===&lt;br /&gt;
In an English language document (&amp;lt;code&amp;gt;lang=&amp;quot;en&amp;quot;&amp;lt;/code&amp;gt;), be sure to markup the element surrounding any non-English names of people, companies, titles, notes etc. with a lang attribute with the appropriate value.&lt;br /&gt;
&lt;br /&gt;
E.g. Spanish names in an english document should be marked up with (&amp;lt;code&amp;gt;lang=&amp;quot;es&amp;quot;&amp;lt;/code&amp;gt;) on their elements.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://tantek.com/microformats/2006/03-01-TechPlenAgenda.html W3C Technical Plenary Agenda], specifically Ignacio Marín, for an example of a person and org marked up with a &amp;lt;code&amp;gt;lang&amp;lt;/code&amp;gt; attribute.&lt;br /&gt;
&lt;br /&gt;
=== Phone Numbers ===&lt;br /&gt;
Add a few phone numbers like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;tel&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;work&amp;lt;/span&amp;gt;&lt;br /&gt;
  tel: &amp;lt;span class=&amp;quot;value&amp;quot;&amp;gt;1-250-555-2142&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;tel&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;work&amp;lt;/span&amp;gt;&lt;br /&gt;
  toll free: &amp;lt;span class=&amp;quot;value&amp;quot;&amp;gt;1-800-555-1855&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;tel&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;work&amp;lt;/span&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;fax&amp;lt;/span&amp;gt;&lt;br /&gt;
  fax: &amp;lt;span class=&amp;quot;value&amp;quot;&amp;gt;1-250-555-2135&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The list of tel types are: &amp;lt;code&amp;gt;voice&amp;lt;/code&amp;gt; [which is the default if &amp;quot;type&amp;quot; is unspecified], &amp;lt;code&amp;gt;home&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;msg&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;work&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pref&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fax&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;cell&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;video&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pager&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;bbs&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;modem&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;car&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isdn&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pcs&amp;lt;/code&amp;gt;.  As shown in the last example above, a tel may have multiple types.  See [[hcard#type_subproperty_values|hCard: Type Subproperty Values]] for the official list.&lt;br /&gt;
&lt;br /&gt;
=== Photographs ===&lt;br /&gt;
Mark up representative image(s) of the person/org with the class name &amp;quot;&amp;lt;code&amp;gt;photo&amp;lt;/code&amp;gt;&amp;quot;, e.g.:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;img class=&amp;quot;photo&amp;quot; src=&amp;quot;http://www.factorycity.net/images/avatar.jpg&amp;quot; alt=&amp;quot;&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your name is not already marked up (see the Names section above), and your first and last name consist of only two words, you can set the alt attribute for the image as your name. In this case, include the &amp;quot;fn&amp;quot; class name along with the &amp;quot;photo&amp;quot; class name in the class attribute: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;img class=&amp;quot;photo fn&amp;quot; src=&amp;quot;http://www.factorycity.net/images/avatar.jpg&amp;quot; alt=&amp;quot;Chris Messina&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To ensure that the picture is not left out whenever a hcard is converted into a vcard, the external URI should be replaced with the actual encoded picture data as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;img alt=&amp;quot;photo&amp;quot; class=&amp;quot;photo&amp;quot; src=&amp;quot;data:image/jpeg;base64,/9j/4AAQSkZJRgAB[...]RRxTwKpCP//Z&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An easy way to encode a contact picture is to use some application which can export vcard files including contact picture, as the freeware [http://www.palm.com/us/software/desktop/ Palm Desktop] does.&lt;br /&gt;
&lt;br /&gt;
=== Geographic Coordinates ===&lt;br /&gt;
Add your geographic coordinates:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;geo&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;latitude&amp;quot;&amp;gt;48.430092246&amp;lt;/span&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;longitude&amp;quot;&amp;gt;-123.364348450&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A more human friendly version would be implemented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;geo&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;abbr class=&amp;quot;latitude&amp;quot; title=&amp;quot;-31.388333&amp;quot;&amp;gt;31&amp;amp;deg;23&amp;amp;#39;18&amp;amp;quot;S&amp;lt;/abbr&amp;gt;, &lt;br /&gt;
&amp;lt;abbr class=&amp;quot;longitude&amp;quot; title=&amp;quot;-57.960556&amp;quot;&amp;gt;57&amp;amp;deg;57&amp;amp;#39;38&amp;amp;quot;O&amp;lt;/abbr&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will look like this:  31°23'18&amp;quot;S, 57°57'38&amp;quot;O.&lt;br /&gt;
&lt;br /&gt;
Note that the degree, minute and seconds characters should go encoded as in the source code example above to prevent that the browser to confuses the character encoding used by the page and shows wrong characters, like chinese characters where accents should be displayed.&lt;br /&gt;
&lt;br /&gt;
A good place to get your coordinate values in both formats is Wikipedia. Look for the article on your city and click the human friendly coordinates to load a page with the decimal values.&lt;br /&gt;
&lt;br /&gt;
=== Fragments and linking ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An hCard is a logical piece of content that people might like to link to. If it's on a page with other content, it can be hard to link to just the one hCard, unless you have a fragment identifier to use. In HTML, you can create fragment identifiers by adding an 'id' attribute to any element. It is good practice to add an 'id' to the wrapper element for an hCard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== More tips and guidelines ===&lt;br /&gt;
Feel free to add more tips that experience has taught you while marking up hCards, even if all you add is a brief catch phrase that reminds you.&lt;br /&gt;
&lt;br /&gt;
* How to note some text, so you can make a comment like who your admin assistant is.&lt;br /&gt;
* More inline code examples, perhaps one for each section (suggestion from Cdevroe)&lt;br /&gt;
* (suggestion from brian) you mention blogroll, this might be out of scope, but you could mention that XFN and hCard can be interweaved - it is not one or the other&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
== Add To Address Book Links ==&lt;br /&gt;
When you update your contact info to include hCard markup, you can also include an &amp;quot;Add to Address Book&amp;quot; link for the convenience of your users.&lt;br /&gt;
&lt;br /&gt;
Here is an example of such a link:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://feeds.technorati.com/contacts/http://tantek.com/%23hcard&amp;quot;&amp;gt;&lt;br /&gt;
Add to Address Book&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simply substitute the link to your hCard for the http://tantek.com/%23hcard URL above, and if you have more than one hCard on that page, you should put a unique ID on each, and then substitute %23hcard in the example URL with %23THEID in your href code where THEID is the ID attribute value that you put on the hCard you are creating the link for.&lt;br /&gt;
&lt;br /&gt;
If a single hcard is served by an index page like http://foo.com/index.php, you just need to substitute http://tantek.com/%23hcard with http://foo.com/&lt;br /&gt;
&lt;br /&gt;
If you want, you can also use Brian Suda's hosted X2V service, or even download and install the X2V XSLT yourself and run it on your own server instead of using an online hCard to vCard converter service.&lt;br /&gt;
&lt;br /&gt;
== Related Pages ==&lt;br /&gt;
{{hcard-related-pages}}&lt;/div&gt;</summary>
		<author><name>AzulMarino</name></author>
	</entry>
	<entry>
		<id>https://microformats.org/wiki/index.php?title=hcard-authoring&amp;diff=23639</id>
		<title>hcard-authoring</title>
		<link rel="alternate" type="text/html" href="https://microformats.org/wiki/index.php?title=hcard-authoring&amp;diff=23639"/>
		<updated>2007-12-05T11:21:43Z</updated>

		<summary type="html">&lt;p&gt;AzulMarino: /* Geographic Coordinates */  human friendly&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;hCard authoring&amp;lt;/h1&amp;gt;&lt;br /&gt;
{{TOC-right}}&lt;br /&gt;
This page contains useful tips and guidelines for how to author [[hcard|hCards]], either from scratch, or by adding markup to existing content.&lt;br /&gt;
&lt;br /&gt;
'''Goal:''' The goal of this document is to provide some good intuitive guidelines that should make it as easy and as quick as possible for any web author to create hCards or add hCard markup to existing content.&lt;br /&gt;
&lt;br /&gt;
'''Audience:''' Web authors, designers, IA's.  This document is written for easy consumption and understanding by any web designer who knows at least enough (X)HTML and CSS to use semantic HTML class names on elements (i.e. [[POSH]]) and write CSS selectors that apply styles to those class names.  Please help with clarifying/simplifying this document accordingly.&lt;br /&gt;
&lt;br /&gt;
'''Author(s):''' [[User:Tantek|Tantek Çelik]], [[User:MarkRickerby|Mark Rickerby]]&lt;br /&gt;
&lt;br /&gt;
== A 5 minute primer to using hCard ==&lt;br /&gt;
&lt;br /&gt;
Let's imagine a static page that contains some personal contact details, the main part of which looks something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;h2&amp;gt;Contact Me&amp;lt;/h2&amp;gt;&lt;br /&gt;
  &amp;lt;p&amp;gt;You can contact me via email to &lt;br /&gt;
   &amp;lt;a href=&amp;quot;mailto:jane@example.com&amp;quot;&amp;gt;jane@example.com&amp;lt;/a&amp;gt;, &lt;br /&gt;
   or send stuff to me at the following address:&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;p&amp;gt;255 Some Street,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Place,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Town&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This snippet has all the human readable information needed to produce a valid [[hcard|hCard]] representation - all that is necessary is to add some additional structure that defines each particular detail. The first thing to do is to add the &amp;lt;code&amp;gt;vcard&amp;lt;/code&amp;gt; wrapper class to the enclosing &amp;lt;code&amp;gt;div&amp;lt;/code&amp;gt;, which identifies this particular block as an [[hcard|hCard]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot; class=&amp;quot;vcard&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One thing that is noticeably missing from this snippet is the name of who these contact details apply to - this makes the information presented  more ambiguous and harder to understand. It's good to be explicit with such things, and it just so happens that the name property is a compulsory field within an [[hcard|hCard]] as well. So let's add it, using the &amp;lt;code&amp;gt;fn&amp;lt;/code&amp;gt; class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot; class=&amp;quot;vcard&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;h2&amp;gt;Contact Me&amp;lt;/h2&amp;gt;&lt;br /&gt;
   &amp;lt;h3 class=&amp;quot;fn&amp;quot;&amp;gt;Jane Doe&amp;lt;/h3&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;You can contact me via email to &lt;br /&gt;
    &amp;lt;a href=&amp;quot;mailto:jane@example.com&amp;quot;&amp;gt;jane@example.com&amp;lt;/a&amp;gt;, &lt;br /&gt;
    or reach me at the following address:&amp;lt;/p&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;255 Some Street,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Town,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Place&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another thing we can do to improve the semantics of the snippet is to mark up the address with &amp;quot;adr&amp;quot;, and use &amp;lt;code&amp;gt;div&amp;lt;/code&amp;gt; tags since its not really a paragraph. At the same time, we should also get rid of the [http://tantek.com/log/2002/10.html#L20021022t1432 bed &amp;amp; breakfast] markup in the second paragraph, replacing it with structured classnames for the components of a mailing address: &amp;lt;code&amp;gt;adr&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;street-address&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;locality&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;region&amp;lt;/code&amp;gt;. We can also add the &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; class to the mailto link, to complete the structure of the [[hcard|hCard]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot; class=&amp;quot;vcard&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;h2&amp;gt;Contact Me&amp;lt;/h2&amp;gt;&lt;br /&gt;
   &amp;lt;h3 class=&amp;quot;fn&amp;quot;&amp;gt;Jane Doe&amp;lt;/h3&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;You can contact me via email to &lt;br /&gt;
    &amp;lt;a class=&amp;quot;email&amp;quot; href=&amp;quot;mailto:jane@example.com&amp;quot;&amp;gt;jane@example.com&amp;lt;/a&amp;gt;, &lt;br /&gt;
    or reach me at the following address:&amp;lt;/p&amp;gt;&lt;br /&gt;
   &amp;lt;div class=&amp;quot;adr&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;div class=&amp;quot;street-address&amp;quot;&amp;gt;255 Some Street&amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;div class=&amp;quot;locality&amp;quot;&amp;gt;Some Town&amp;lt;div/&amp;gt;&lt;br /&gt;
     &amp;lt;div class=&amp;quot;region&amp;quot;&amp;gt;Some Place&amp;lt;/div&amp;gt;&lt;br /&gt;
   &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And that's all it takes!&lt;br /&gt;
&lt;br /&gt;
Aside from the advantages of having such structured visible data, providing these additional class names also increases the visual design possibilities.&lt;br /&gt;
&lt;br /&gt;
== Creating new hCards ==&lt;br /&gt;
Start with the [http://microformats.org/code/hcard/creator hCard creator], and for additional fields and properties (e.g. telephone numbers, instant messaging contacts), see the [[hcard-examples|hCard examples]] page.&lt;br /&gt;
&lt;br /&gt;
== Adding hCard markup to existing content ==&lt;br /&gt;
&lt;br /&gt;
=== Natural language hCard ===&lt;br /&gt;
&lt;br /&gt;
Perhaps you have a traditional prose description of yourself.  Start by reading Jeremy Keith's article  &amp;quot;[http://adactio.com/journal/1122/ Adactio: Journal - Natural language hCard]&amp;quot; which provides a nice succinct introduction in the art of adding hCard markup to an existing prose biography.&lt;br /&gt;
&lt;br /&gt;
=== Minimal Markup Changes ===&lt;br /&gt;
&lt;br /&gt;
When adding hCard to existing content, keep in mind that hCard was designed for semantically enhancing existing content without affecting its presentation (or minimally so).  Thus: change as little markup as possible.  If you want to fix various pages to be valid XHTML etc., that's fine.&lt;br /&gt;
&lt;br /&gt;
In all examples below where it says to add an element with class name of &amp;quot;&amp;lt;code&amp;gt;xyz&amp;lt;/code&amp;gt;&amp;quot;, first look for an existing element that precisely surrounds the necessary content. Re-use that element by simply adding the class name &amp;quot;&amp;lt;code&amp;gt;xyz&amp;lt;/code&amp;gt;&amp;quot; (meaning, add &amp;quot; xyz&amp;quot; (without quotes) to the element's existing class attribute, or add a new class attribute &amp;lt;code&amp;gt;class=&amp;quot;xyz&amp;quot;&amp;lt;/code&amp;gt; to elements without a class attribute).&lt;br /&gt;
&lt;br /&gt;
E.g. &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span class=&amp;quot;foo&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
would become:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span class=&amp;quot;foo xyz&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
would become:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span class=&amp;quot;xyz&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Find People or Organizations ===&lt;br /&gt;
Start with looking for all mentions of people or organizations on a page.  All of those are potential hCards.  Even more so if they are linked to their respective URLs (e.g. home pages / blogs).&lt;br /&gt;
&lt;br /&gt;
If a person (or organization, henceforth shortened to just &amp;quot;'''person/org'''&amp;quot;) is mentioned several times on a page, consider marking up the mention which is the most detailed, definitive, or otherwise thorough as an hCard.  Ideally you might want to mark up ''all'' instances of a person/org as hCards, but for now, just keep it simple and markup the most representative instance. (Perhaps the most &amp;quot;definitive&amp;quot; instance, which could also then be marked up with a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;dfn&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; element around the name of the person/org for additional semantic XHTML goodness.)&lt;br /&gt;
&lt;br /&gt;
=== Determine The Surrounding Element for Each ===&lt;br /&gt;
For each person/org that you want to turn into an hCard, find the smallest element that contains all the info about that person/org, and no info about any other person/org.&lt;br /&gt;
&lt;br /&gt;
Add the class name &amp;quot;&amp;lt;code&amp;gt;vcard&amp;lt;/code&amp;gt;&amp;quot; to that element.&lt;br /&gt;
&lt;br /&gt;
If there is no such element (perhaps the nearest enclosing element contains more than one person/org), then add a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;vcard&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;...&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; that wraps the info about about that person/org and just that person/org.&lt;br /&gt;
&lt;br /&gt;
The rest of the markup for this hCard MUST go ''inside'' that element with the class name &amp;quot;vcard&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== The Importance of Names ===&lt;br /&gt;
The name is the one required property of hCard.  Thus be sure to mark up the name of the person with the class name &amp;quot;fn&amp;quot;.  For names of people which are two simple words (text separated by space) and where the first word is their given name and the second word is their family name, the class name &amp;quot;fn&amp;quot; is sufficient. E.g. &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn&amp;quot;&amp;gt;Rohit Khare&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For people with middle names (e.g. &amp;quot;Håkon Wium Lie&amp;quot;), or with multi-word last names (e.g. &amp;quot;Thomas Vander Wal&amp;quot;), you must mark them up with the &amp;quot;n&amp;quot; property and its sub-properties &amp;quot;given-name&amp;quot; and &amp;quot;family-name&amp;quot;, e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn n&amp;quot; lang=&amp;quot;no&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;given-name&amp;quot;&amp;gt;Håkon&amp;lt;/span&amp;gt; &lt;br /&gt;
 &amp;lt;span class=&amp;quot;additional-name&amp;quot;&amp;gt;Wium&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;family-name&amp;quot;&amp;gt;Lie&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn n&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;given-name&amp;quot;&amp;gt;Thomas&amp;lt;/span&amp;gt; &lt;br /&gt;
 &amp;lt;span class=&amp;quot;family-name&amp;quot;&amp;gt;Vander Wal&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Organization hCards ====&lt;br /&gt;
&lt;br /&gt;
For hCards for organizations, be sure to put both the &amp;quot;fn&amp;quot; and &amp;quot;org&amp;quot; class names on the same element. Having those be the same is the hint to hCard consumers that the hCard represents an organization rather than a person. E.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn org&amp;quot;&amp;gt;Technorati&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Representative URLs ===&lt;br /&gt;
One of the most common patterns for person/orgs in web content is the name of the person/org, hyperlinked to their definitive/preferred web site.&lt;br /&gt;
&lt;br /&gt;
Blogrolls are a good example of this (see also [[xoxo|XOXO]]).&lt;br /&gt;
&lt;br /&gt;
Since the class attribute takes a space separated set of class names, one can often markup the URL on the same element as the name, e.g. &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://theryanking.com&amp;quot; class=&amp;quot;fn url&amp;quot;&amp;gt;Ryan King&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Markup as many URLs as you have for the person/org with the class name &amp;quot;&amp;lt;code&amp;gt;url&amp;lt;/code&amp;gt;&amp;quot;, e.g. URLs to social network and other online service profiles.&lt;br /&gt;
&lt;br /&gt;
If you are marking up an hCard on your own site, be sure to also add the [[xfn|XFN]] &amp;lt;code&amp;gt;rel=&amp;quot;me&amp;quot;&amp;lt;/code&amp;gt; attribute to indicate that those profile pages are additional facets of your online identity.  See &amp;lt;cite&amp;gt;[http://gmpg.org/xfn/and/#idconsolidation Identity consolidation with XFN]&amp;lt;/cite&amp;gt; for more details.&lt;br /&gt;
&lt;br /&gt;
=== Titles ===&lt;br /&gt;
If the person's job title is mentioned, mark it up with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;title&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Though typical vCards/hCards have only a single job title, if someone has several job titles listed say in a comma delimited list, just markup the whole lot of them with one big &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;title&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://tantek.com/microformats/2006/03-01-TechPlenAgenda.html W3C Technical Plenary Agenda] for examples of people with multiple titles.&lt;br /&gt;
&lt;br /&gt;
=== Other affiliations ===&lt;br /&gt;
As vCard seems to imply a model of a person only being associated with one organization (at least certainly that's how most [[vcard-implementations]] appear to be written), consider placing other affiliations and info about the person into &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;note&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; elements.  You can have more than one; converters will simply append them all in source order.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://tantek.com/microformats/2006/03-01-TechPlenAgenda.html W3C Technical Plenary Agenda] for examples of people with additional affiliations (such as W3C Working Groups) marked up inside &amp;quot;note&amp;quot; elements.&lt;br /&gt;
&lt;br /&gt;
Sometimes text in a document near a person/contact will explain *why* that person should be contacted.  Such information is also useful to have in a &amp;quot;note&amp;quot; element.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://rbach.priv.at/repos/misc/microformatting/ETech2006/invite.html O'Reilly ETech 2006 invite] for examples of people with additional &amp;quot;For ... &amp;quot; reasons marked up as &amp;quot;note&amp;quot; elements.&lt;br /&gt;
&lt;br /&gt;
=== Set the lang when different ===&lt;br /&gt;
In an English language document (&amp;lt;code&amp;gt;lang=&amp;quot;en&amp;quot;&amp;lt;/code&amp;gt;), be sure to markup the element surrounding any non-English names of people, companies, titles, notes etc. with a lang attribute with the appropriate value.&lt;br /&gt;
&lt;br /&gt;
E.g. Spanish names in an english document should be marked up with (&amp;lt;code&amp;gt;lang=&amp;quot;es&amp;quot;&amp;lt;/code&amp;gt;) on their elements.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://tantek.com/microformats/2006/03-01-TechPlenAgenda.html W3C Technical Plenary Agenda], specifically Ignacio Marín, for an example of a person and org marked up with a &amp;lt;code&amp;gt;lang&amp;lt;/code&amp;gt; attribute.&lt;br /&gt;
&lt;br /&gt;
=== Phone Numbers ===&lt;br /&gt;
Add a few phone numbers like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;tel&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;work&amp;lt;/span&amp;gt;&lt;br /&gt;
  tel: &amp;lt;span class=&amp;quot;value&amp;quot;&amp;gt;1-250-555-2142&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;tel&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;work&amp;lt;/span&amp;gt;&lt;br /&gt;
  toll free: &amp;lt;span class=&amp;quot;value&amp;quot;&amp;gt;1-800-555-1855&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;tel&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;work&amp;lt;/span&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;fax&amp;lt;/span&amp;gt;&lt;br /&gt;
  fax: &amp;lt;span class=&amp;quot;value&amp;quot;&amp;gt;1-250-555-2135&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The list of tel types are: &amp;lt;code&amp;gt;voice&amp;lt;/code&amp;gt; [which is the default if &amp;quot;type&amp;quot; is unspecified], &amp;lt;code&amp;gt;home&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;msg&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;work&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pref&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fax&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;cell&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;video&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pager&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;bbs&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;modem&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;car&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isdn&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pcs&amp;lt;/code&amp;gt;.  As shown in the last example above, a tel may have multiple types.  See [[hcard#type_subproperty_values|hCard: Type Subproperty Values]] for the official list.&lt;br /&gt;
&lt;br /&gt;
=== Photographs ===&lt;br /&gt;
Mark up representative image(s) of the person/org with the class name &amp;quot;&amp;lt;code&amp;gt;photo&amp;lt;/code&amp;gt;&amp;quot;, e.g.:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;img class=&amp;quot;photo&amp;quot; src=&amp;quot;http://www.factorycity.net/images/avatar.jpg&amp;quot; alt=&amp;quot;&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your name is not already marked up (see the Names section above), and your first and last name consist of only two words, you can set the alt attribute for the image as your name. In this case, include the &amp;quot;fn&amp;quot; class name along with the &amp;quot;photo&amp;quot; class name in the class attribute: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;img class=&amp;quot;photo fn&amp;quot; src=&amp;quot;http://www.factorycity.net/images/avatar.jpg&amp;quot; alt=&amp;quot;Chris Messina&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To ensure that the picture is not left out whenever a hcard is converted into a vcard, the external URI should be replaced with the actual encoded picture data as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;img alt=&amp;quot;photo&amp;quot; class=&amp;quot;photo&amp;quot; src=&amp;quot;data:image/jpeg;base64,/9j/4AAQSkZJRgAB[...]RRxTwKpCP//Z&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An easy way to encode a contact picture is to use some application which can export vcard files including contact picture, as the freeware [http://www.palm.com/us/software/desktop/ Palm Desktop] does.&lt;br /&gt;
&lt;br /&gt;
=== Geographic Coordinates ===&lt;br /&gt;
Add your geographic coordinates:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;geo&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;latitude&amp;quot;&amp;gt;48.430092246&amp;lt;/span&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;longitude&amp;quot;&amp;gt;-123.364348450&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A more human friendly version would be implemented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;geo&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;abbr class=&amp;quot;latitude&amp;quot; title=&amp;quot;-31.388333&amp;quot;&amp;gt;31&amp;amp;deg;23&amp;amp;#39;18&amp;amp;quot;S&amp;lt;/abbr&amp;gt;, &lt;br /&gt;
&amp;lt;abbr class=&amp;quot;longitude&amp;quot; title=&amp;quot;-57.960556&amp;quot;&amp;gt;57&amp;amp;deg;57&amp;amp;#39;38&amp;amp;quot;O&amp;lt;/abbr&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will look like this:  31°23'18&amp;quot;S, 57°57'38&amp;quot;O.&lt;br /&gt;
&lt;br /&gt;
Note that the degree, minute and seconds characters should go encoded as in the source code example above to prevent that the browser to confuses the character encoding used by the page and shows wrong characters, like chinese characters where accents should be displayed.&lt;br /&gt;
&lt;br /&gt;
A good place to get your coordinate values in both formats is Wikipedia. Look for the article on your city and click the human friendly coordinates to load a page with the decimal values.&lt;br /&gt;
&lt;br /&gt;
=== Fragments and linking ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An hCard is a logical piece of content that people might like to link to. If it's on a page with other content, it can be hard to link to just the one hCard, unless you have a fragment identifier to use. In HTML, you can create fragment identifiers by adding an 'id' attribute to any element. It is good practice to add an 'id' to the wrapper element for an hCard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== More tips and guidelines ===&lt;br /&gt;
Feel free to add more tips that experience has taught you while marking up hCards, even if all you add is a brief catch phrase that reminds you.&lt;br /&gt;
&lt;br /&gt;
* How to note some text, so you can make a comment like who your admin assistant is.&lt;br /&gt;
* More inline code examples, perhaps one for each section (suggestion from Cdevroe)&lt;br /&gt;
* (suggestion from brian) you mention blogroll, this might be out of scope, but you could mention that XFN and hCard can be interweaved - it is not one or the other&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
== Add To Address Book Links ==&lt;br /&gt;
When you update your contact info to include hCard markup, you can also include an &amp;quot;Add to Address Book&amp;quot; link for the convenience of your users.&lt;br /&gt;
&lt;br /&gt;
Here is an example of such a link:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://feeds.technorati.com/contacts/http://tantek.com/%23hcard&amp;quot;&amp;gt;&lt;br /&gt;
Add to Address Book&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simply substitute the link to your hCard for the http://tantek.com/%23hcard URL above, and if you have more than one hCard on that page, you should put a unique ID on each, and then substitute %23hcard in the example URL with %23THEID in your href code where THEID is the ID attribute value that you put on the hCard you are creating the link for.&lt;br /&gt;
&lt;br /&gt;
If you want, you can also use Brian Suda's hosted X2V service, or even download and install the X2V XSLT yourself and run it on your own server instead of using an online hCard to vCard converter service.&lt;br /&gt;
&lt;br /&gt;
== Related Pages ==&lt;br /&gt;
{{hcard-related-pages}}&lt;/div&gt;</summary>
		<author><name>AzulMarino</name></author>
	</entry>
	<entry>
		<id>https://microformats.org/wiki/index.php?title=hcard-authoring&amp;diff=23638</id>
		<title>hcard-authoring</title>
		<link rel="alternate" type="text/html" href="https://microformats.org/wiki/index.php?title=hcard-authoring&amp;diff=23638"/>
		<updated>2007-12-05T11:12:20Z</updated>

		<summary type="html">&lt;p&gt;AzulMarino: /* Photographs */  Picture are data&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;hCard authoring&amp;lt;/h1&amp;gt;&lt;br /&gt;
{{TOC-right}}&lt;br /&gt;
This page contains useful tips and guidelines for how to author [[hcard|hCards]], either from scratch, or by adding markup to existing content.&lt;br /&gt;
&lt;br /&gt;
'''Goal:''' The goal of this document is to provide some good intuitive guidelines that should make it as easy and as quick as possible for any web author to create hCards or add hCard markup to existing content.&lt;br /&gt;
&lt;br /&gt;
'''Audience:''' Web authors, designers, IA's.  This document is written for easy consumption and understanding by any web designer who knows at least enough (X)HTML and CSS to use semantic HTML class names on elements (i.e. [[POSH]]) and write CSS selectors that apply styles to those class names.  Please help with clarifying/simplifying this document accordingly.&lt;br /&gt;
&lt;br /&gt;
'''Author(s):''' [[User:Tantek|Tantek Çelik]], [[User:MarkRickerby|Mark Rickerby]]&lt;br /&gt;
&lt;br /&gt;
== A 5 minute primer to using hCard ==&lt;br /&gt;
&lt;br /&gt;
Let's imagine a static page that contains some personal contact details, the main part of which looks something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;h2&amp;gt;Contact Me&amp;lt;/h2&amp;gt;&lt;br /&gt;
  &amp;lt;p&amp;gt;You can contact me via email to &lt;br /&gt;
   &amp;lt;a href=&amp;quot;mailto:jane@example.com&amp;quot;&amp;gt;jane@example.com&amp;lt;/a&amp;gt;, &lt;br /&gt;
   or send stuff to me at the following address:&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;p&amp;gt;255 Some Street,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Place,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Town&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This snippet has all the human readable information needed to produce a valid [[hcard|hCard]] representation - all that is necessary is to add some additional structure that defines each particular detail. The first thing to do is to add the &amp;lt;code&amp;gt;vcard&amp;lt;/code&amp;gt; wrapper class to the enclosing &amp;lt;code&amp;gt;div&amp;lt;/code&amp;gt;, which identifies this particular block as an [[hcard|hCard]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot; class=&amp;quot;vcard&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One thing that is noticeably missing from this snippet is the name of who these contact details apply to - this makes the information presented  more ambiguous and harder to understand. It's good to be explicit with such things, and it just so happens that the name property is a compulsory field within an [[hcard|hCard]] as well. So let's add it, using the &amp;lt;code&amp;gt;fn&amp;lt;/code&amp;gt; class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot; class=&amp;quot;vcard&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;h2&amp;gt;Contact Me&amp;lt;/h2&amp;gt;&lt;br /&gt;
   &amp;lt;h3 class=&amp;quot;fn&amp;quot;&amp;gt;Jane Doe&amp;lt;/h3&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;You can contact me via email to &lt;br /&gt;
    &amp;lt;a href=&amp;quot;mailto:jane@example.com&amp;quot;&amp;gt;jane@example.com&amp;lt;/a&amp;gt;, &lt;br /&gt;
    or reach me at the following address:&amp;lt;/p&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;255 Some Street,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Town,&amp;lt;br /&amp;gt;&lt;br /&gt;
     Some Place&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another thing we can do to improve the semantics of the snippet is to mark up the address with &amp;quot;adr&amp;quot;, and use &amp;lt;code&amp;gt;div&amp;lt;/code&amp;gt; tags since its not really a paragraph. At the same time, we should also get rid of the [http://tantek.com/log/2002/10.html#L20021022t1432 bed &amp;amp; breakfast] markup in the second paragraph, replacing it with structured classnames for the components of a mailing address: &amp;lt;code&amp;gt;adr&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;street-address&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;locality&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;region&amp;lt;/code&amp;gt;. We can also add the &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt; class to the mailto link, to complete the structure of the [[hcard|hCard]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div id=&amp;quot;contact&amp;quot; class=&amp;quot;vcard&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;h2&amp;gt;Contact Me&amp;lt;/h2&amp;gt;&lt;br /&gt;
   &amp;lt;h3 class=&amp;quot;fn&amp;quot;&amp;gt;Jane Doe&amp;lt;/h3&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;You can contact me via email to &lt;br /&gt;
    &amp;lt;a class=&amp;quot;email&amp;quot; href=&amp;quot;mailto:jane@example.com&amp;quot;&amp;gt;jane@example.com&amp;lt;/a&amp;gt;, &lt;br /&gt;
    or reach me at the following address:&amp;lt;/p&amp;gt;&lt;br /&gt;
   &amp;lt;div class=&amp;quot;adr&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;div class=&amp;quot;street-address&amp;quot;&amp;gt;255 Some Street&amp;lt;/div&amp;gt;&lt;br /&gt;
     &amp;lt;div class=&amp;quot;locality&amp;quot;&amp;gt;Some Town&amp;lt;div/&amp;gt;&lt;br /&gt;
     &amp;lt;div class=&amp;quot;region&amp;quot;&amp;gt;Some Place&amp;lt;/div&amp;gt;&lt;br /&gt;
   &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And that's all it takes!&lt;br /&gt;
&lt;br /&gt;
Aside from the advantages of having such structured visible data, providing these additional class names also increases the visual design possibilities.&lt;br /&gt;
&lt;br /&gt;
== Creating new hCards ==&lt;br /&gt;
Start with the [http://microformats.org/code/hcard/creator hCard creator], and for additional fields and properties (e.g. telephone numbers, instant messaging contacts), see the [[hcard-examples|hCard examples]] page.&lt;br /&gt;
&lt;br /&gt;
== Adding hCard markup to existing content ==&lt;br /&gt;
&lt;br /&gt;
=== Natural language hCard ===&lt;br /&gt;
&lt;br /&gt;
Perhaps you have a traditional prose description of yourself.  Start by reading Jeremy Keith's article  &amp;quot;[http://adactio.com/journal/1122/ Adactio: Journal - Natural language hCard]&amp;quot; which provides a nice succinct introduction in the art of adding hCard markup to an existing prose biography.&lt;br /&gt;
&lt;br /&gt;
=== Minimal Markup Changes ===&lt;br /&gt;
&lt;br /&gt;
When adding hCard to existing content, keep in mind that hCard was designed for semantically enhancing existing content without affecting its presentation (or minimally so).  Thus: change as little markup as possible.  If you want to fix various pages to be valid XHTML etc., that's fine.&lt;br /&gt;
&lt;br /&gt;
In all examples below where it says to add an element with class name of &amp;quot;&amp;lt;code&amp;gt;xyz&amp;lt;/code&amp;gt;&amp;quot;, first look for an existing element that precisely surrounds the necessary content. Re-use that element by simply adding the class name &amp;quot;&amp;lt;code&amp;gt;xyz&amp;lt;/code&amp;gt;&amp;quot; (meaning, add &amp;quot; xyz&amp;quot; (without quotes) to the element's existing class attribute, or add a new class attribute &amp;lt;code&amp;gt;class=&amp;quot;xyz&amp;quot;&amp;lt;/code&amp;gt; to elements without a class attribute).&lt;br /&gt;
&lt;br /&gt;
E.g. &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span class=&amp;quot;foo&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
would become:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span class=&amp;quot;foo xyz&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
would become:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;span class=&amp;quot;xyz&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Find People or Organizations ===&lt;br /&gt;
Start with looking for all mentions of people or organizations on a page.  All of those are potential hCards.  Even more so if they are linked to their respective URLs (e.g. home pages / blogs).&lt;br /&gt;
&lt;br /&gt;
If a person (or organization, henceforth shortened to just &amp;quot;'''person/org'''&amp;quot;) is mentioned several times on a page, consider marking up the mention which is the most detailed, definitive, or otherwise thorough as an hCard.  Ideally you might want to mark up ''all'' instances of a person/org as hCards, but for now, just keep it simple and markup the most representative instance. (Perhaps the most &amp;quot;definitive&amp;quot; instance, which could also then be marked up with a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;dfn&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; element around the name of the person/org for additional semantic XHTML goodness.)&lt;br /&gt;
&lt;br /&gt;
=== Determine The Surrounding Element for Each ===&lt;br /&gt;
For each person/org that you want to turn into an hCard, find the smallest element that contains all the info about that person/org, and no info about any other person/org.&lt;br /&gt;
&lt;br /&gt;
Add the class name &amp;quot;&amp;lt;code&amp;gt;vcard&amp;lt;/code&amp;gt;&amp;quot; to that element.&lt;br /&gt;
&lt;br /&gt;
If there is no such element (perhaps the nearest enclosing element contains more than one person/org), then add a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;vcard&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;...&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; that wraps the info about about that person/org and just that person/org.&lt;br /&gt;
&lt;br /&gt;
The rest of the markup for this hCard MUST go ''inside'' that element with the class name &amp;quot;vcard&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== The Importance of Names ===&lt;br /&gt;
The name is the one required property of hCard.  Thus be sure to mark up the name of the person with the class name &amp;quot;fn&amp;quot;.  For names of people which are two simple words (text separated by space) and where the first word is their given name and the second word is their family name, the class name &amp;quot;fn&amp;quot; is sufficient. E.g. &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn&amp;quot;&amp;gt;Rohit Khare&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For people with middle names (e.g. &amp;quot;Håkon Wium Lie&amp;quot;), or with multi-word last names (e.g. &amp;quot;Thomas Vander Wal&amp;quot;), you must mark them up with the &amp;quot;n&amp;quot; property and its sub-properties &amp;quot;given-name&amp;quot; and &amp;quot;family-name&amp;quot;, e.g.:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn n&amp;quot; lang=&amp;quot;no&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;given-name&amp;quot;&amp;gt;Håkon&amp;lt;/span&amp;gt; &lt;br /&gt;
 &amp;lt;span class=&amp;quot;additional-name&amp;quot;&amp;gt;Wium&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;family-name&amp;quot;&amp;gt;Lie&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn n&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;given-name&amp;quot;&amp;gt;Thomas&amp;lt;/span&amp;gt; &lt;br /&gt;
 &amp;lt;span class=&amp;quot;family-name&amp;quot;&amp;gt;Vander Wal&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Organization hCards ====&lt;br /&gt;
&lt;br /&gt;
For hCards for organizations, be sure to put both the &amp;quot;fn&amp;quot; and &amp;quot;org&amp;quot; class names on the same element. Having those be the same is the hint to hCard consumers that the hCard represents an organization rather than a person. E.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;fn org&amp;quot;&amp;gt;Technorati&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Representative URLs ===&lt;br /&gt;
One of the most common patterns for person/orgs in web content is the name of the person/org, hyperlinked to their definitive/preferred web site.&lt;br /&gt;
&lt;br /&gt;
Blogrolls are a good example of this (see also [[xoxo|XOXO]]).&lt;br /&gt;
&lt;br /&gt;
Since the class attribute takes a space separated set of class names, one can often markup the URL on the same element as the name, e.g. &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;vcard&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://theryanking.com&amp;quot; class=&amp;quot;fn url&amp;quot;&amp;gt;Ryan King&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Markup as many URLs as you have for the person/org with the class name &amp;quot;&amp;lt;code&amp;gt;url&amp;lt;/code&amp;gt;&amp;quot;, e.g. URLs to social network and other online service profiles.&lt;br /&gt;
&lt;br /&gt;
If you are marking up an hCard on your own site, be sure to also add the [[xfn|XFN]] &amp;lt;code&amp;gt;rel=&amp;quot;me&amp;quot;&amp;lt;/code&amp;gt; attribute to indicate that those profile pages are additional facets of your online identity.  See &amp;lt;cite&amp;gt;[http://gmpg.org/xfn/and/#idconsolidation Identity consolidation with XFN]&amp;lt;/cite&amp;gt; for more details.&lt;br /&gt;
&lt;br /&gt;
=== Titles ===&lt;br /&gt;
If the person's job title is mentioned, mark it up with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;title&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Though typical vCards/hCards have only a single job title, if someone has several job titles listed say in a comma delimited list, just markup the whole lot of them with one big &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;title&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://tantek.com/microformats/2006/03-01-TechPlenAgenda.html W3C Technical Plenary Agenda] for examples of people with multiple titles.&lt;br /&gt;
&lt;br /&gt;
=== Other affiliations ===&lt;br /&gt;
As vCard seems to imply a model of a person only being associated with one organization (at least certainly that's how most [[vcard-implementations]] appear to be written), consider placing other affiliations and info about the person into &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;note&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; elements.  You can have more than one; converters will simply append them all in source order.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://tantek.com/microformats/2006/03-01-TechPlenAgenda.html W3C Technical Plenary Agenda] for examples of people with additional affiliations (such as W3C Working Groups) marked up inside &amp;quot;note&amp;quot; elements.&lt;br /&gt;
&lt;br /&gt;
Sometimes text in a document near a person/contact will explain *why* that person should be contacted.  Such information is also useful to have in a &amp;quot;note&amp;quot; element.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://rbach.priv.at/repos/misc/microformatting/ETech2006/invite.html O'Reilly ETech 2006 invite] for examples of people with additional &amp;quot;For ... &amp;quot; reasons marked up as &amp;quot;note&amp;quot; elements.&lt;br /&gt;
&lt;br /&gt;
=== Set the lang when different ===&lt;br /&gt;
In an English language document (&amp;lt;code&amp;gt;lang=&amp;quot;en&amp;quot;&amp;lt;/code&amp;gt;), be sure to markup the element surrounding any non-English names of people, companies, titles, notes etc. with a lang attribute with the appropriate value.&lt;br /&gt;
&lt;br /&gt;
E.g. Spanish names in an english document should be marked up with (&amp;lt;code&amp;gt;lang=&amp;quot;es&amp;quot;&amp;lt;/code&amp;gt;) on their elements.&lt;br /&gt;
&lt;br /&gt;
View source on the [http://tantek.com/microformats/2006/03-01-TechPlenAgenda.html W3C Technical Plenary Agenda], specifically Ignacio Marín, for an example of a person and org marked up with a &amp;lt;code&amp;gt;lang&amp;lt;/code&amp;gt; attribute.&lt;br /&gt;
&lt;br /&gt;
=== Phone Numbers ===&lt;br /&gt;
Add a few phone numbers like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;tel&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;work&amp;lt;/span&amp;gt;&lt;br /&gt;
  tel: &amp;lt;span class=&amp;quot;value&amp;quot;&amp;gt;1-250-555-2142&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;tel&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;work&amp;lt;/span&amp;gt;&lt;br /&gt;
  toll free: &amp;lt;span class=&amp;quot;value&amp;quot;&amp;gt;1-800-555-1855&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;div class=&amp;quot;tel&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;work&amp;lt;/span&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;type&amp;quot;&amp;gt;fax&amp;lt;/span&amp;gt;&lt;br /&gt;
  fax: &amp;lt;span class=&amp;quot;value&amp;quot;&amp;gt;1-250-555-2135&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The list of tel types are: &amp;lt;code&amp;gt;voice&amp;lt;/code&amp;gt; [which is the default if &amp;quot;type&amp;quot; is unspecified], &amp;lt;code&amp;gt;home&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;msg&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;work&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pref&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fax&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;cell&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;video&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pager&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;bbs&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;modem&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;car&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;isdn&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pcs&amp;lt;/code&amp;gt;.  As shown in the last example above, a tel may have multiple types.  See [[hcard#type_subproperty_values|hCard: Type Subproperty Values]] for the official list.&lt;br /&gt;
&lt;br /&gt;
=== Photographs ===&lt;br /&gt;
Mark up representative image(s) of the person/org with the class name &amp;quot;&amp;lt;code&amp;gt;photo&amp;lt;/code&amp;gt;&amp;quot;, e.g.:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;img class=&amp;quot;photo&amp;quot; src=&amp;quot;http://www.factorycity.net/images/avatar.jpg&amp;quot; alt=&amp;quot;&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your name is not already marked up (see the Names section above), and your first and last name consist of only two words, you can set the alt attribute for the image as your name. In this case, include the &amp;quot;fn&amp;quot; class name along with the &amp;quot;photo&amp;quot; class name in the class attribute: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;img class=&amp;quot;photo fn&amp;quot; src=&amp;quot;http://www.factorycity.net/images/avatar.jpg&amp;quot; alt=&amp;quot;Chris Messina&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To ensure that the picture is not left out whenever a hcard is converted into a vcard, the external URI should be replaced with the actual encoded picture data as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;img alt=&amp;quot;photo&amp;quot; class=&amp;quot;photo&amp;quot; src=&amp;quot;data:image/jpeg;base64,/9j/4AAQSkZJRgAB[...]RRxTwKpCP//Z&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An easy way to encode a contact picture is to use some application which can export vcard files including contact picture, as the freeware [http://www.palm.com/us/software/desktop/ Palm Desktop] does.&lt;br /&gt;
&lt;br /&gt;
=== Geographic Coordinates ===&lt;br /&gt;
Add your geographic coordinates:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 &amp;lt;span class=&amp;quot;geo&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;latitude&amp;quot;&amp;gt;48.430092246&amp;lt;/span&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;longitude&amp;quot;&amp;gt;-123.364348450&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fragments and linking ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An hCard is a logical piece of content that people might like to link to. If it's on a page with other content, it can be hard to link to just the one hCard, unless you have a fragment identifier to use. In HTML, you can create fragment identifiers by adding an 'id' attribute to any element. It is good practice to add an 'id' to the wrapper element for an hCard.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== More tips and guidelines ===&lt;br /&gt;
Feel free to add more tips that experience has taught you while marking up hCards, even if all you add is a brief catch phrase that reminds you.&lt;br /&gt;
&lt;br /&gt;
* How to note some text, so you can make a comment like who your admin assistant is.&lt;br /&gt;
* More inline code examples, perhaps one for each section (suggestion from Cdevroe)&lt;br /&gt;
* (suggestion from brian) you mention blogroll, this might be out of scope, but you could mention that XFN and hCard can be interweaved - it is not one or the other&lt;br /&gt;
* ...&lt;br /&gt;
&lt;br /&gt;
== Add To Address Book Links ==&lt;br /&gt;
When you update your contact info to include hCard markup, you can also include an &amp;quot;Add to Address Book&amp;quot; link for the convenience of your users.&lt;br /&gt;
&lt;br /&gt;
Here is an example of such a link:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://feeds.technorati.com/contacts/http://tantek.com/%23hcard&amp;quot;&amp;gt;&lt;br /&gt;
Add to Address Book&lt;br /&gt;
&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simply substitute the link to your hCard for the http://tantek.com/%23hcard URL above, and if you have more than one hCard on that page, you should put a unique ID on each, and then substitute %23hcard in the example URL with %23THEID in your href code where THEID is the ID attribute value that you put on the hCard you are creating the link for.&lt;br /&gt;
&lt;br /&gt;
If you want, you can also use Brian Suda's hosted X2V service, or even download and install the X2V XSLT yourself and run it on your own server instead of using an online hCard to vCard converter service.&lt;br /&gt;
&lt;br /&gt;
== Related Pages ==&lt;br /&gt;
{{hcard-related-pages}}&lt;/div&gt;</summary>
		<author><name>AzulMarino</name></author>
	</entry>
</feed>