[uf-discuss] hCard: url and tel

Tantek Ç elik tantek at cs.stanford.edu
Mon Jan 7 14:08:18 PST 2008


On 1/7/08 11:52 AM, "Andy Mabbett" <andy at pigsonthewing.org.uk> wrote:

> In message <F77EFF3F-DCCC-429A-8A36-20A8F1D60915 at theryanking.com>, ryan
> <ryan at theryanking.com> writes
> 
>> On Jan 6, 2008, at 12:30 PM, Andy Mabbett wrote:
>>> In message <47804C38.1040101 at t-tec.com.au>, Katrina <Kaz at t-tec.com.au>
>>> writes
>>> 
>>>> I want to specify a work-related telephone number, but I just want to
>>>> label it 'Phone:'. The closest I can find to do this is the abbr,
>>>> however, work is not an abbreviation of 'phone'.
>>>> 
>>>> eg. <abbr class="type" title="work">Phone</abbr>
>>>> 
>>>> Q2. Would it be possible to do something like this, instead?
>>>> <span class="type" title="work">Phone</span>
>>> 
>>> 
>>> We could - if there is sufficient support - adapt the recently-
>>> proposed
>>> "sub-microformat" pattern, so that:
>>> 
>>>         <foo class="tel-work">5555555</a>
>>> 
>>> becomes parsed as a "work-type" 'phone number.
>> 
>> I don't think we want to do this, because it puts human-readable data
>> ("work") in a spot that's no longer visible.
> 
> Except that, as the OP stated, that it's a work number is clear from the
> context.
> 
> In any case, how is that different from:
> 
>       <abbr class="dtstart" title="2008-01-07">7 Jan</abbr>
> 
> where "2008" is "hidden"?

title attribute is displayed in tool-tips and thus is at least semi-visible
and thus human verifiable.

class attribute is not.

<http://microformats.org/wiki/faq#Q._Should_human_readable_data_go_into_clas
s_names.3F>

Tantek



More information about the microformats-discuss mailing list