Skip to main content

Cornell University

Web Accessibility Reviews

Form field label is descriptive

Applicability

This rule applies to any [programmatic label][] of an element which has one of the following [semantic roles][semantic role]:

  • checkbox
  • combobox
  • listbox
  • menuitemcheckbox
  • menuitemradio
  • radio
  • searchbox
  • slider
  • spinbutton
  • switch
  • textbox

and where both the element and the [programmatic label][] are [visible][].

Expectation

Each test target, together with its [visual context][], describes the purpose of the associated element.

Assumptions

  • This rule assumes that [labels][label] are intended for sighted users, and that hiding a [visible][] [label][] from assistive technologies, is a failure of [Success Criterion 4.1.2: Name, Role and Value][sc412], but not of [Success Criterion 2.4.6: Headings and Labels][sc246].
  • This rule assumes that the [programmatic labels][programmatic label] of an element are also part of its [visual context][].

Accessibility Support

  • Implementation of [Presentational Roles Conflict Resolution][] varies from one browser or assistive technology to another. Depending on this, some elements can have one of the applicable [semantic roles][semantic role] and fail this rule with some technology but users of other technologies would not experience any accessibility issue.

Background

The list of applicable [semantic roles][semantic role] is derived by taking all the [ARIA 1.2][aria12] roles that:

  • inherit from the input, menuitem or select role, and
  • are form field controls (this notably excludes menu, option or tree).

AI Prompt