W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Re: unifying alternate content across embedded content element types

From: Patrick Garies <pgaries@fastmail.us>
Date: Sun, 15 Jul 2007 02:37:33 -0500
Message-ID: <4699CEBD.1070303@fastmail.us>
To: Robert Burns <rob@robburns.com>
CC: public-html@w3.org

Robert Burns wrote:
> It might be helpful if you too could provide some examples of what 
> you're saying. For example, in Jon's Fluffy picture example, how would 
> you populate the @alt attribute? I understand one needs context to be 
> able to do this, but feel free to take liberties, make assumptions and 
> fill in the gaps and then craft an example.  It would just be helpful 
> to see how one might attach proper @alt  and @longdesc to an simple 
> example like this.

Context: document about Fluffy
Code: <img alt="Fluffy likes playing with balls of yarn." src="cat.png">
Code: <img alt="My cat Fluffy likes playing with balls of yarn." 
src="cat.png">
Code: <img alt="I let my cat, Fluffy, played with a ball of yarn when we 
were at my friend’s house a year ago. He seemed to enjoy it." src="cat.png">
Code: <img alt="I own a cat named Fluffy. He likes playing with balls of 
yarn." src="cat.png">

You want to convey what the image was meant to convey rather than simply 
describing what’s in the image. If that isn’t clear enough, take the 
following example.

Image: icon depicting a house
Bad Example: <a href="/"><img alt="House Icon" src="home.png"></a>
Good Example: <a href="/"><img alt="Go to the Home Page" src="home.png"></a>

<a href="/">House Icon</a> is, obviously, not what was meant to be conveyed.
Received on Sunday, 15 July 2007 07:37:45 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:47 UTC