[uf-discuss] General vcard help

Martin McEvoy martin at weborganics.co.uk
Tue Mar 29 09:08:16 PST 2011


On 29/03/11 16:04, John M. Dlugosz wrote:
> On 3/29/2011 5:54 AM, Brian Suda brian.suda-at-gmail.com |Microformats
> dicsussion/Allow to home| wrote:
>> --- You will need to change your HTML to accomidate both a TYPE and
>> VALUE.
>
> That's not nice.
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss

you could also take a look at
http://microformats.org/wiki/value-class-pattern#Using_value-title_to_publish_machine-data

If you are worried about making your data look "nice"  eg:

<dl class="vcard">
<dt>PHONE</dt>
<dd class="tel">
    <span class="type"><span class="value-title" title="work">
</span></span>
    <span class="value">+1 800-818-5336</span>
</dd>

<dt>FAX</dt>
<dd class="tel">
    <span class="type"><span class="value-title" title="fax"> </span></span>
    <span class="value">+1 214-295-9491</span>
</dd>
</dl>

of course the above is a lot more verbose than your original example ...
but the data you are publishing will  look "nice" to a machine too ;)

Best wishes ans welcome John

Martin McEvoy.






More information about the microformats-discuss mailing list