Rule FORM-4
The elements input[type="button"] must have and input[type=[submit | reset"] may have value text.

Description

Best Practice Type: Pass/Fail

The elements input[type=“button”] must have and the element input[type=“submit | reset”] may have:

  1. value attribute content on the form control element itself, or
  2. title attribute content on the form control element itself.

Notes

  • If both title attribute and value attribute are specified, the title attribute will override the value attribute.
  • When there are more than one input[type=“button | submit | reset”] elements of one type, all with the same value attribute, on a page, the title attributes can be used to differentiate the effective labels of the form controls.
  • The use of the value and title attribute with the input[type=“submit | reset”] can be used to uniquely identify the information to be submitted or reset when there is more than one form on a web page.

Markup

input[type=button] (HTML4)

input[type=submit | reset] (HTML4)

Associated Accessibility Guidelines and Standards

Guideline or
Standard
Requirement Priority Test
Type
IITAA 10.1 Provide labels or titles for all form fields. Required Violation
Section 508 1194.22 (n) When electronic forms are designed to be completed on-line, the form shall allow people using assistive technology to access the information, field elements, and functionality required for completion and submission of the form, including all directions and cues. Required Violation
WCAG 1.0 12.4 Associate labels explicitly with their controls. Required Violation
WCAG 2.0 1.3.1 Info and Relationships Required Violation

Examples

none

Evaluation Techniues

Testsuite Tests