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

Re: Tests 59,

From: Chris Ridpath <chris.ridpath@utoronto.ca>
Date: Tue, 21 Dec 2004 10:31:45 -0500
Message-ID: <01b601c4e772$2dbb3cb0$e29a968e@WILDDOG>
To: "Gregg Vanderheiden" <gv@trace.wisc.edu>, "'WAI WCAG List'" <w3c-wai-gl@w3.org>

Hi Gregg,

Thanks for your thoughtful comments.

Alt text is one of the core means of making content accessible so I want to
make sure we get this right. Please forgive me if I belabor this issue.

Test 11 ensures that any text in the image will appear in the alt text.

I propose modifying test 59 so it uses test 11 as a prerequisite and test 11
takes precedence.

If your submit button is an image and it contains text then that text
becomes the Alt text. This should cover most image submit buttons and it's
what most people do now.

This narrows our discussion to submit buttons that use images containing no
text. This is likely a small minority of submit buttons.

The Alt text for these images should not be the purpose of the button. It
should not be "submit" or "button" or any combination of these 2 words. The
purpose, (a submit button) is abundantly clear, both explicitly (through the
HTML code) and implicitly (its position within the form) so no need to put
that in the Alt text.

The Alt text should be the purpose of the form. You provided good examples
as "search" or "find". Other examples could be "purchase" or "renew

I propose modifying test 59 so it reads:
"INPUT element with type of "image" must have Alt text that identifies the
purpose or function of the form."
(This only applies to images that don't have text in them.)

Our current techniques state "This label should indicate the button's nature
as a submit button" and use "submit" as an example of good Alt text. This is
a common practice that should be discouraged.

I note that previously in this thread, John Slatin argued that "button"
should not be included in the Alt text.

I've created test 192 that checks for "button" and "image":
INPUT element with type of "image" must not have redundant Alt text.

These proposals should ensure that submit buttons using images are
accessible. However, we can improve accessibility...

Gregg noted:
> If the search button is a magnifying glass or binoculars
> its alt text should be 'search' or  'find'  not 'magnifying
> glass' or 'binoculars'

This is today's thinking but allow me to take you to the fantasy world of
tomorrow. Open your mind and explore the vast possibilities of what may be.

In the world of tomorrow, the purpose of the button is in the INPUT
element's title attribute. The Alt text describes the image.

Our fantasy world contains user agents that render, if present, the title
attribute. A screen reader would say "search" when encountering code like:
<input type="image" name="submit" src="button.gif" alt="magnifying glass"
title="search" />

This is allowed under the current UAAG and HTML specs.

It means the user has more semantic information available - they can find
out what the image looks like. Increased semantic information is a good

> The alt text was never intended to provide a
> description of the image.
Break the chains! Surge toward the new frontier of increased web
accessibility. Use Alt text to describe the image and use title attributes
for functional purposes.

Using Alt text for multiple purposes is confusing and should be avoided.

Back in our hum-drum world of today, I see there's a lot of discussion on
the lists regarding this issue so perhaps we should let this simmer for a
bit before making any firm decisions.


----- Original Message ----- 
From: "Gregg Vanderheiden" <gv@trace.wisc.edu>
To: "'WAI WCAG List'" <w3c-wai-gl@w3.org>
Sent: Monday, December 20, 2004 5:22 PM
Subject: RE: Tests 59,

> Hi Chris,
> The alt text was never intended to provide a description of the image.
> its function.   A 'stand in' if you will if the image is missing.    The
> test is
> "If you replace the image with the text - would everyone do the same
thing -
> receive the same information - etc.  as best as possible."
> If the search button is a magnifying glass or binoculars its alt text
> be 'search' or  'find'  not 'magnifying glass' or 'binoculars'
> If the image is meant to convey an image - then a description is
> appropriate.
> If it was meant to convey data - then that is what is appropriate.
> If it was meant to convey a function then that is what should be there.
> "alt" text was not called "desription" or "Desc".  It was not meant to be
> description per se.    Just when appropriate.
> Gregg
Received on Tuesday, 21 December 2004 15:32:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:59:34 UTC