You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under "Approach 1: Associating related controls with fieldset" in "Example 3: Related Fields" it states:
In case the <legend> is not read by screen readers (see note below), labels for the first form control in each group should include the group’s name. This name can be hidden visually.
And then the note it refers to:
Note: Depending on the configuration, some screen readers read out the legend either with every form element, once, or, rarely, not at all. To accommodate this consider the following:
Make the legend as short as possible for situations in which it is read together with the label each time,
Make the individual labels sufficiently self-explanatory for situations in which legends are not read aloud, without repeating the legend in every label.
Is this guidance still valid? In our testing, all AT/browser combinations either read the legend text with each input or with the first input when the fieldset was first entered. Duplicating the group's name in the first form control as the advice here suggests results in it being read twice in all combinations.
The advice feels like it may have been true several years ago, but today using <fieldset> + <legend> properly with modern browsers and AT achieves a good result.
Resource URL
https://www.w3.org/WAI/tutorials/forms/grouping/
Description
Under "Approach 1: Associating related controls with fieldset" in "Example 3: Related Fields" it states:
And then the note it refers to:
Is this guidance still valid? In our testing, all AT/browser combinations either read the legend text with each input or with the first input when the fieldset was first entered. Duplicating the group's name in the first form control as the advice here suggests results in it being read twice in all combinations.
The advice feels like it may have been true several years ago, but today using
<fieldset>
+<legend>
properly with modern browsers and AT achieves a good result.Link to CodePen used for testing
Test results:
Versions:
Resource Shortname
No response
The text was updated successfully, but these errors were encountered: