Provide alt on images used as submit buttons [H36]

Test info
Possible Results

Test info

Test for Success Criterion 1.1.1

About

Checked Elements: input
Checks that all inputs of type <input type="image"> contain an 'alt' attribute with content.

Short Description

For input elements of type 'image', the alt attribute of the input element is used to provide a functional label. This label indicates the button's function, but does not attempt to describe the image. The label is especially important if there are multiple submit buttons on the page that each lead to different results. <br> The input element is used to create many kinds of form controls. Although the HTML and XHTML DTDs permits the alt attribute on all of these, it should be used only on image submit buttons. User agent support for this attribute on other types of form controls is not well defined, and other mechanisms are used to label these controls. Procedure <br> 1- For all input elements that have a type attribute value of "image", check for the presence of an alt attribute. <br> 2-Check that the alt attribute indicates the button's function. <br> Reference: WCAG2

WCAG 2.0

Principle 3: Understandable
Information and the operation of user interface must be understandable.
WCAG 2.0: Principle 3
Guideline 3.1: Readable
Make text content readable and understandable. Understanding Guideline 3.1
Success Criterion 3.1.1: Language of Page (Level A)
The default human language of each Web page can be programmatically determined . Understanding: Success Criterion 3.1.1
Technique

Possible Results

Failed input type="image" without alt

inputs of type <input type="image"> has no ‘alt’ attribute with content

Passed input type="image" has alt

inputs of type <input type="image"> contains an ‘alt’ attribute with content