Fieldset label (group-label)

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


Missing fieldset:

In this example there is missing <fieldset>.


Choose your favorite fruits:



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

</legend> Choose your favorite fruits:<legend>
<input type="checkbox" name="fruit" value="apple" /> Apple
<input type="checkbox" name="fruit" value="banana" /> Banana

Note: Impossible to automatically test or detect. Requires a human tester or AI to determine if a <fieldset> element is needed and where (i.e. which form elements are related), and ensure that a <fieldset> exists if necessary.