WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: [External Sender]Use of label without input

for

From: glen walker
Date: Nov 15, 2019 12:07PM


Depends what you mean by "legit". The list of "labelable elements" does
not show that a fieldset can be labeled by a <label> element. Look at the
last column of the table in
https://www.w3.org/TR/html53/sec-forms.html#labelable-element.

You'll get a parsing error if you try something like this:

<label for="stuff">hello</label>
<fieldset id="stuff"></fieldset>


On Fri, Nov 15, 2019 at 11:56 AM Brian Lovely via WebAIM-Forum <
<EMAIL REMOVED> > wrote:

> So it looks like it's perfectly legit to use a label instead of a legend as
> the group label of a fieldset element.
>
>
>