WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Fieldset/legend as label for textbox or textarea?

for

From: Steve Faulkner
Date: Apr 17, 2018 8:32AM


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

you are correct, use <label> for individual checkboxes and radio buttons,
fieldset/legend for group labels.

--

Regards

SteveF
Current Standards Work @W3C
<http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>;

On 17 April 2018 at 15:19, Isabel Holdsworth < <EMAIL REMOVED> >
wrote:

> 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.
> > > > >