Fieldset label (group-label)
Group related form fields with <fieldset> and include a descriptive <legend> for each group.
Aria-labelledby instead of a legend:
In this example aria-labelledby is used instead of a <legend> element:
In other words, this <fieldset> lacks a <legend>.
Choose a color:
The (DOM/programmatic) structure of the above example looks like this:
<fieldset aria-labelledby="color-label">
<input type="radio" name="color" value="red" /> Red
<input type="radio" name="color" value="blue" /> Blue
</fieldset>
<span id="color-label">Choose a color:</span>
<input type="radio" name="color" value="red" /> Red
<input type="radio" name="color" value="blue" /> Blue
</fieldset>
<span id="color-label">Choose a color:</span>