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

Re: Add Example Explaining that Alt Text is Dependent Upon the Context

From: Sander Tekelenburg <st@isoc.nl>
Date: Thu, 23 Aug 2007 08:32:08 +0200
Message-Id: <p06240629c2f2cb8f3595@[192.168.0.101]>
To: <public-html@w3.org>

At 14:59 +1000 UTC, on 2007-08-23, Lachlan Hunt wrote:

>    I think it would be good if the spec included a set of examples to
> explain that the alt text is dependent upon the context in which the
> image is used, and the purpose it is used for.

Yeah, when I looked at the new text of this section I was actually thinking
that such examples should include a single image in different contexts --
including an actual image would probably help to make it clear.

> So the same image may be
> used in different locations and have entirely different alt text.

I think the "Fluffy" examples we used in the "unifying alternate content
across embedded content element types" thread could be useful. In that thread
we actually bothered to think up different contexts already.

<article>
<h1>My cats</h1>
<h2>Fluffy</h2>
<p>Fluffy is my favourite.</p>
<img src="fluffy.jpg" alt="She likes playing with a ball of yarn.">
<p>She's just too cute.</p>
<h2>Miles</h2>
<p>My other cat, Miles just eats and sleeps.</p>
</article>

<article>
<h1>Photography</h1>
<h2>Shooting moving targets indoors</h2>
<p>The trick here is to know how to anticipate; to know at what speed and
what distance the subject will pass by.</p>
<img src="fluffy.jpg" alt="A cat flying by, chasing a ball of yarn, can be
photographed quite nicely using this technique.">
<h2>Nature by night</h2>
<p>To achieve this, you'll need either an extremely sensitive film, or
immense flash lights.</p>
</article>

<article>
<h1>About me</h1>
<h2>My pets</h2>
<p>I've got a cat and a dog.</p>
<img src="fluffy.jpg" alt="Fluffy, my cat, tends to keep itself busy.">
<p>My dog Miles and I like go on long walks together.</p>
<h2>music</h2>
<p>After our walks, having emptied my mind, I like listening to Bach.</p>
</article>

Only problem is that the image is imaginary. We'll need to find someone with
a cat named Fluffy, willing to donate some photos. Maybe Karl can call upon
people to help find a suitable candidate, through the blog.

> For example, and picture of a flag, such as the Australian flag,

Just a randomly chosen flag eh? ;)


-- 
Sander Tekelenburg
The Web Repair Initiative: <http://webrepair.org/>
Received on Thursday, 23 August 2007 06:39:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:04 GMT