[uf-discuss] An Inconvenient hCard

Paul Wilkins pmw57 at xtra.co.nz
Sun Mar 11 17:27:19 PST 2007

From: "Ara Pehlivanian" <ara.pehlivanian at gmail.com>
> I've got a bit of a problem with an hCard that I need to mark up and I
> was wondering if anyone could lend me a hand.
> I realize the syntax requires that a type be specified for telephone
> numbers ("voice", "fax", etc...) and that's where my problem lies.
> It's inconvenient to have the word "voice" appear in the markup
> because that's not how the convention (at least in this neck of the
> woods) is when writing out contact information. The final display
> should be:
> Tel.: (514) 123-4567
> Fax: (514) 123-4568
> Yet with the required "voice"/"fax" types it ends up like this:
> Voice Tel.: (514) 123-4567
> Fax Fax: (514) 123-4568


> So, dear Microformats community, please lend me a hand and help me
> unravel this conundrum of mine.

Good news, the voice type is the default one, so you don't have to specify 
the voice type at all, and only specify for the fax (in this case).

With that, you can have
<p class="tel">Tel: <span class="value">(514) 123-4567</p>
<p class="tel"><span class="type">Fax</span>: <span class="value">(514) 

Paul Wilkins 

More information about the microformats-discuss mailing list