WebAIM - Web Accessibility In Mind

E-mail List Archives

Fieldset/legend as label for textbox or textarea?

for

From: Isabel Holdsworth
Date: Apr 17, 2018 8:19AM


Hi all,

We're currently using a fieldset/legend wrapper to label some of our
textboxes, but it doesn't work well with JAWS.

This feels like an incorrect use of fieldset/legend to me, as it's
supposed to be a group label for checkboxes or radiobuttons.

Would fieldset/legend in this scenario be enough to pass WCAG2, or
would it fail on 2.4.6 (headings and labels) and/or 4.1.2 (name, role,
value)?

Thanks as always.