[uf-discuss] Confused about telephone numbers in hCard

Mike Kaply microformats at kaply.com
Fri Jun 29 10:22:38 PDT 2007

I believe you are running into a bug in tails export where <abbr> doesn't work.

Can you try a test page that doesn't use abbr but still uses type ,
and see what happens?


On 6/29/07, Rickards, Julian (NDM) <julian.rickards at ontario.ca> wrote:
> Hi:
> 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
> class="value">1-800-670-5861</span></div>
> 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
> class="work">1-800-670-5861</span></span></div>
> 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
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss

More information about the microformats-discuss mailing list