[uf-discuss] Confused about telephone numbers in hCard
Scott Reynen
scott at randomchaos.com
Sun Jul 1 19:34:28 PDT 2007
On Jul 1, 2007, at 6:21 PM, Paul Wilkins wrote:
>>>> <div class="tel"><abbr class="type" title="work">Toll-free
>>>> Phone:</abbr>
>>>> <span class="value">1-800-670-5861</span></div>
>>>
>>> This is the correct way to markup that you're after.
>>
>> According to the spec, certainly; but it runs up against the known
>> problem of abusing the abbr element:
>
> According to the maxim: "People first, machines second" how should
> the following text be marked up so that it works with existing tools?
>
> Toll-free Phone: 1-800-670-5861
If it doesn't bother you for humans using screen readers to hear that
as "work 1-800-670-5861," the markup above is fine. If that does
bother you, the following is valid, though it doesn't specify to
machines that it's a work number:
<div class="tel">Toll-free Phone: <span class="value">1-800-670-5861</
span></div>
Peace,
Scott
More information about the microformats-discuss
mailing list