EN, Change language
Englishالعربية
JO-041

Every interactive form field has a label and attributes describing the expected value.

The requirement (from the 2022 Guidelines)

Every interactive form field has a label and attributes describing the expected value.

Why it matters to users

A screen reader user hears the field's label before typing; without one they hear only 'edit text'. Placeholder text vanishes as soon as typing starts, so an older user forgets what was asked and enters the wrong thing.

How to fix it

Tie every field to a visible label element with the for attribute, add attributes such as autocomplete, inputmode and aria-describedby to describe the expected value, and do not rely on placeholder text alone. Then scan again.

How we measure it

Every input, select and textarea (also those hidden until opened) has a <label for>, a wrapping label or aria-label/aria-labelledby; placeholder alone does not count. Attributes describing the expected value are not measured. Partly measured: we measure what the public pages show of this rule; the rest needs a review.

Form inspected, never submitted.

Its place in the MODEE guidelines

Related rules

Labelled form fields · Jordan JO-041 | xfix