Rule FORM-5
Each label, button and legend element must contain text content.

Description

Best Practice Type: Pass/Fail

Each label, button and legend element must contain text content.

Notes

  • Content must consist of at least three printable characters (space characters are ignored).
  • Text content includes all text nodes contained by the label, button or legend element.
  • If an img element with an alt attribute is contained in a label, button or legend element, the alt attribute value is inserted into the text content in the order of appearance in the document to become part of the effective label of the form control.

Markup

input[type=text|password|radio|checkbox|file] (HTML4)

textarea (HTML4)

select (HTML4)

label (HTML4)

fieldset/legend (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

Evaluation Techniues

Testsuite Tests