WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Hiding Legends

for

From: Dean Hamack
Date: Oct 15, 2008 3:30PM


Hi Jukka,

Responses inline.

On 10/15/08 2:07 PM, "Jukka K. Korpela" < <EMAIL REMOVED> > wrote:

> Why do you want to hide it, and how is this an accessibility issue? (Hiding
> the legend does not sound to _improve_ accessibility.)

Because legends generally aren't necessary for sighted people. They are
necessary for blind people when there are multiple fields with similar
labels.

Read this article:

http://www.sitepoint.com/article/fancy-form-design-css/

> I don't think there's nothing usual there.

Guess you're new around here. That's the way we hide elements for
accessibility:

http://webaim.org/techniques/css/invisiblecontent/

> But if you really want to hide legend elements, why don't you use just
> legend { display: none; }

Because that's not accessible. See the above article.