Label groups of form elements [H71]
Test infoPossible Results
Test info
About
Short Description
How to Repair
Add a fieldset element around every related group of form controls. Provide a descriptive legend element as the first element of the fieldset that states the meaning of, or instructions for the enclosed elements.
For input elements of type radio and checkbox
A set of radio buttons or checkboxes is related when they all submit values for a single named field. Such groups and other groups of logically related form controls must be grouped by a fieldset element.
Add a fieldset element around every related group of radio buttons and checkboxes. Provide a descriptive legend element as the first element of the fieldset that states the meaning of, or instructions for the enclosed elements.
For fieldset elements
Provide a descriptive legend element as the first element of the fieldset. Further information: Accessible Forms using WCAG 2.0
WCAG 2.0
- Principle 3: Understandable
-
Information and the operation of user interface must be understandable.
WCAG 2.0: Principle 3 - Guideline 3.3: Input Assistance
- Help users avoid and correct mistakes. Understanding Guideline 3.3
- Success Criterion 3.3.2: Labels or Instructions (Level A)
-
Labels or instructions are provided when content requires user input (Level A).
Understanding: Success Criterion 3.3.2 - Techniques
Possible Results
- The form seems to need structuring
-
The amount of form controls within the form usually needs grouping by fieldsets.
- The legend is ambiguous
-
The text of the legend element is a duplicate of another legend that occurs before this one in the same form.
- There is no text in the legend
-
The legend element contains only non-text content.
- The legend is empty
-
There is no content in the legend.
- The legend is missing
-
There is no legend labeling the fieldset.
- The radio buttons or checkboxes need grouping
-
There are related radio buttons or checkboxes (the radio buttons or checkboxes have the same name), that have to be grouped by fieldsets.
- Related radio buttons or checkboxes are grouped correctly
-
The set of related radio buttons or checkboxes does not need further grouping by a fieldset.
- Related radio buttons or checkboxes are grouped correctly
-
The set of related radio buttons or checkboxes does not need further grouping by a fieldset.
- The form seems to be structured correctly
-
There are no more than 8 form controls not grouped by fieldsets.
- Please check the legend
-
Human input is necessary to verify, that the legend describes the group formed by the fieldset.