[uf-discuss] Legit hcard?
brian suda
brian.suda at gmail.com
Thu Nov 17 07:46:14 PST 2005
This snippit of HTML is a valid hCard, but it makes little sense,
ndunn at ndunn.com is NOT a abbrivation, (short or long) of HOME. Secondly,
EMAIL properties can only take "INTERNET | PREF | X400" so HOME is not a
valid type. But yes, you would want to follow the class="value",
class="type" style encoding.
<span class="email">
<a href="mailto:ndunn at ndunn.com" class="value">
<abbr class="type" title="home">ndunn at ndunn.com</abbr>
</a>
</span>
It should be something like:
<span class="email">
<abbr class="type" title="pref">Use this address to email me:
</abbr>
<a href="mailto:ndunn at ndunn.com"
class="value">ndunn at ndunn.com</a>
</span>
-brian
Phil Dawes wrote:
> Hi Microformats list,
>
> I was just wondering, is the 'email' bit at the bottom of the
> following is legal hCard?
>
> <div class="vcard">
> <a class="url fn" href="http://www.ndunn.com/">Neil Dunn</a>
> <a href="http://www.ndunn.com/images/extreme_me.png">
> <img class="photo" src="vcard/face.png" alt="Neil Dunn">
> </a>
> <address class="adr">
> <span class="street-address">21 Ford Avenue</span><br>
> <span class="locality">Eastleigh</span><br>
> <span class="region">Hampshire</span><br>
> <span class="postal-code">SO53 3BA</span>
> </address>
> <address class="tel">
> <abbr class="type" title="cell">Mobile</abbr>:
> <span class="value">+447739012951</span>
> </address>
> <p>
> <a href="mailto:ndunn at ndunn.com" class="email">
> <abbr class="type"
> title="home">ndunn at ndunn.com</abbr>
> </a>
> </p>
> </div>
>
>
> The spec seems to imply that a 'value' should be being used here[1].
> E.g. maybe:
>
> <span class="email">
> <a href="mailto:ndunn at ndunn.com" class="value">
> <abbr class="type" title="home">ndunn at ndunn.com</abbr>
> </a>
> </span>
>
> Am interested because it has a baring on my 'deduce the structure'
> hacking!
>
> Many thanks,
>
> Phil
>
> [1] http://microformats.org/wiki/hcard#Value_excerpting
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>
More information about the microformats-discuss
mailing list