[uf-discuss] RFC: Using <img>'s alt attribute for Microformats

Scott Reynen scott at randomchaos.com
Wed Dec 14 15:04:13 PST 2005


On Dec 14, 2005, at 4:15 PM, Ryan King wrote:

> On Dec 14, 2005, at 12:47 PM, Charles Iliya Krempeaux wrote:
>> So, maybe hCard's, hReview's, etc should allow this too?  For  
>> example:
>>
>>     <address class="vcard">
>>         <img class="fn" src="my-name-in-styled-lettering.png"
>> alt="Charles Iliya Krempeaux" />
>>     </address>
>>
>> (And, yeah, I know this would give the problem that would can't add
>> the sub-structure to the "fn" that hCard's allow.  But you could
>> always break it up into multiple images if you wanted.  And at least
>> then you'd support this very common practice.)
>
> For properties that don't expect images it might be reasonable to  
> use the alt attribute value for the value of the property. However,  
> it might be a bit too open ended (and how often do people do this,  
> anyway?).

Using images of stylized text with alt attributes containing the text  
is quite common:

http://www.google.com/
http://www.apple.com/
http://www.yahoo.com/
http://www.microsoft.com/
and, um...
http://www.technorati.com/
http://microformats.org/

If you're asking about TV show titles specifically, I'm sure Charles  
could answer that better, but here's one:

http://tv.yahoo.com/

My question: which should take precedence between alt and title values?

Peace,
Scott


More information about the microformats-discuss mailing list