W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > October to December 2004

Re: ALT and TITLE Clarification

From: Joe Clark <joeclark@joeclark.org>
Date: Wed, 22 Dec 2004 21:05:52 +0000 (UTC)
To: WAI-GL <w3c-wai-gl@w3.org>
Message-ID: <Pine.LNX.4.60.0412222100330.10332@aristotle.multipattern.com>

> Currently, the use of Alt text depends upon the element's context. For
> example, an image on its own requires Alt text that describes the image.

Replaces, in fact.

> If the same image is used as a link, the Alt text describes the link 
> destination.

No, just the image; alt="" is part if <img>, not <a>.

> If the same image is used as a submit button, the Alt text describes the 
> form's purpose.

The purpose of the entire form? I rather think not.

<input> can take alt text (with precisely the same sense as for <img>):
<http://www.w3.org/TR/REC-html40/interact/forms.html#edef-INPUT>

<button> cannot. However, its content can be its text.

> 1) The TITLE attribute of the AREA, INPUT (with type of "image") and A
> (anchor) elements be used to describe the element's purpose or function.

*May* be used for such purpose.

> 2) The ALT attribute be used always as a short description of the image.

Replacement for.

> The use of ALT and TITLE attributes for these purposes is within the UAAG
> and HTML4 specifications.

It's a limitation of the use of title="", which is specified as the rather 
more general "This attribute offers advisory information about the element 
for which it is set" 
<http://www.w3.org/TR/REC-html40/struct/global.html#adef-title>.

> P.S. I realize the WCAG2 is getting close to release and don't want to slow
> things down.

You're kidding yourself if you think WCAG2 is even remotely suitable for 
release. Something this small is barely worth talking about on the long 
list of known deficiencies.

-- 

     Joe Clark | joeclark@joeclark.org
     Accessibility <http://joeclark.org/access/>
     Expect criticism if you top-post
Received on Wednesday, 22 December 2004 21:09:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:47:32 GMT