[uf-discuss] Confused about telephone numbers in hCard

Rickards, Julian (NDM) julian.rickards at ontario.ca
Fri Jun 29 10:07:43 PDT 2007


I am still having a bit of trouble with telephone numbers in hCard
microformat. The instructions I have read seem to suggest that all I
need is to identify that a phone-number is within a class="tel", that
the type must be identified (such as work) and that the value should be
identified.  The rest of my hCard markup (class="adr") worked fine but
the phone numbers proved to be very challenging.

What I am doing is trying to make my markup work in Outlook 2003 by
exporting from Tails Export. 

I started with:

<div class="tel"><abbr class="type" title="work">Toll-free Phone:</abbr>
<span class="value">1-800-670-5861</span></div>

but the phone entry in Outlook is empty. So I changed the <abbr> to
<span> as follows:

<div class="tel"><span class="work">Toll-free Phone:</span> <span

but now the entry in Outlook appears but it appears as "Toll-free Phone:
1-800-670-5861". However, I don't want "Toll-free Phone: " in the phone
number field.

So I changed the code to:

<div>Toll-free Phone: <span class="tel"><span

and now it works properly but HTML Tidy gives me a warning about nested
spans. So I changed it once again to combine the classes to:

<div>Toll-free Phone: <span class="tel work">1-800-670-5861</span></div>

but this results in an empty field in Outlook.

Why is this so hard to do?
Julian Rickards
Geoscience Data Conversion Technician
Provincial Recording Office,
Willet Green Miller Building, Level B3,
933 Ramsey Lake Road,
Sudbury, ON  P3E 6B5
E-mail: julian.rickards at ontario.ca
Phone: (705) 670-5861, Fax: (705) 670-5881

More information about the microformats-discuss mailing list