Sometimes in forms we have elements that are grouped, such as radio buttons. A sighted user can quickly see that they are visually grouped as well as see the label, or legend, that groups them. For a screen reader user to have a similar experience we want them to hear the legend and the overall grouping. This provides the full context as to what each input is.
fieldsets have a
legendas their first child.
- This implementation leads to some screen readers reading the legend on each input, while others read it when the user navigates in to the grouping. Either of these experiences is correct.