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

Robert Bachmann rbach at rbach.priv.at
Fri Dec 16 11:35:30 PST 2005


Scott Reynen wrote:
> [...]
> And my first inclination would be to give imageless humans something 
> more readable by putting the machine data in the title attribute 
> instead, e.g.:
> 
> <img class="bday" src="today.png" alt="December 15, 2005" 
> title="20051215T080000Z" />
> 
> This is sending three different types of data to three different  types
> of readers.  src is for imaged humans, alt is for imageless  humans, and
> title is for machines.  I understand the drawback of  further
> complication, but the alternative seems to require authors to  choose
> between usability and microformats.

IMO it would be better to write:

<abbr class="bday" title="20051215T080000Z">
<img src="file..." alt="December 15, 2005" />
</abbr>

This way you could have
- img's src for the imaged users
- img's alt for the imageless users
- and abbr's title for users who think in 1's and 0's.

Robert
-- 
Robert Bachmann <rbach at rbach.priv.at> (OpenPGP KeyID: 0x4A5CCF10)


More information about the microformats-discuss mailing list