This is a draft document supplied by the WCAG Techniques Task Force. It in no way represents a WCAG Working Group consensus or agreement and is provided for informational and discussion purposes only. The accessibility test listed below should not be construed as required for conformance with the proposed WCAG2.
input
elements with a type
attribute value of "image" have an alt
attribute.Copyright 2005, ATRC, University Of Toronto, All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply.
This test case was created by the ATRC at the University Of Toronto. It should not be construed as required for conformance with the proposed WCAG2.
The complete list of tests may be found at http://www.w3.org/WAI/GL/WCAG20/tests/
Comments on this test may be made to the WCAG mailing list.
As part of the conformance test process, this test has a status of 'accepted'.
Guideline: 1.1 - Provide text alternatives for all non-text content.
Success Criteria:
2. For functional non-text content , text alternatives serve the same purpose as the non-text content. If text alternatives can not serve the same purpose as the functional non-text content, text alternatives identify the purpose of the functional non-text content Non-text content that uses technologies outside the baseline must satisfy guideline 4.2 . How to provide text alternatives for content that is functional . (Informative)
Level 1
The WCAG2 has 3 priority levels for making Web content accessible. This test has a priority of 'Level 1'.
The WCAG Working Group has created techniques that describe how Web content may be made accessible. The following techniques are related to this test:
There are no prerequisite tests for this test.
input
elements that have a type
attribute value of "image".alt
attribute.input
elements with a type
attribute value of "image" have an alt
attribute.alt
attribute to the input
element.alt
attribute value so it describes the function of the input
element.The following tests are related to this test and may be performed next. There is no requirement that these tests be performed:
These test files contain examples of the accessibility problem detectable by this test. They may also contain more accessibility problems than the one described in this test. Please ignore any extraneous accessibility problems in these files.
input
element, type
of "image", is missing alt
attribute.)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>OAC Testfile - Check #58 - Positive</title>
</head>
<body>
<form action="http://example.com/prog/text-read" method="post">
<p><input type="image" name="submit" src="button.gif" /></p>
</form>
</body>
</html>
input
element, type
of "image", has alt
attribute.)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>OAC Testfile - Check #58 - Negative</title>
</head>
<body>
<form action="http://example.com/prog/text-read" method="post">
<p><input type="image" name="submit" src="button.gif" alt="Search" /></p>
</form>
</body>
</html>