WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: HTML Fieldset missing a Legend

for

From: Patrick H. Lauke
Date: Nov 4, 2021 9:11AM


On 04/11/2021 03:05, Laurence Lewis wrote:
> The HTML Spec says that the <legend> element is optional for a <fieldset>.
> I am interested to understand if not having a Legend is a WCAG 1.3.1 Info
> and Relationships or 3.2.2 Labels or Instructions.
> I do not believe not naming a Fieldset is a WCAG fail for either sc, and
> would appreciate the opinions of others. Thanks.

It's only a failure of 1.3.1 if there IS something there in the page,
visually, conveyed through presentation (i.e. something that does act as
a legend in this case) that hasn't been correctly marked up as such. If
there isn't anything currently that you can see, it can't fail 1.3.1

If currently the whole group doesn't make any sense (to anybody,
including sighted users) without a legend included, then there is an
argument that it fails 3.2.2. This is more vague/opinionated.

P
--
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke