Goal
- Optimize the rendering on screen readers, by making it possible to spell out the form’s field labels.
- Improve the accessibility of content for people with disabilities.
Implementation
Explicitly associate in the source code of each piece of information that completes a form field label, or that informs the user in the event of an input error:
- either using a fieldset field grouping and the legend element;
- or using the
aria-describedby
attribute.
Control
Check in the source code that each piece of information that completes a form field label, or that informs the user in the event of an input error:
- is associated with the field by being tagged with a legend element included in a fieldset element grouping the relevant fields;
- or is associated with the field via an
aria-describedby
attribute.