Fieldset label (group-label)

Group related form fields with <fieldset> and include a descriptive <legend> for each group.


Missing legend in fieldset:

This <fieldset> element does not have a <legend>.





The (DOM/programmatic) structure of the above fieldset looks like this:

//Fieldset without a legend

<fieldset>
<label for="red">
Red:</label>
<input type="radio" name="color" value="red" id="red" />
<br />
<label for="blue">
Blue:</label>
<input type="radio" name="color" value="blue" id="blue" />
</fieldset>

Note: Possible to automatically test. This violation can be automatically detected by querying all <fieldset> elements and checking if they include a <legend> element.