WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: One question: regarding label for attribute

for

From: Aaron Cannon
Date: Jun 6, 2016 10:26AM


I recently heard that wrapping an input tag with a label tag, and
also using the for attribute on the label to associate it with the
input, will cause VoiceOver on the Mac to read the label twice. I
haven't verified this, however. Has anyone else noticed this
behavior?

But even if it is true, it's probably better to have it read twice in
one screen reader, than not at all in another.

Aaron

On 6/6/16, Steve Faulkner < <EMAIL REMOVED> > wrote:
> On 6 June 2016 at 15:55, 김형섭 < <EMAIL REMOVED> > wrote:
>
>> If I add for attribute in label tag and id attribute in input tag, in
>> above code, is this okay?
>
>
> yes it is perfectly OK to do this.
>
> --
>
> Regards
>
> SteveF
> Current Standards Work @W3C
> <http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>;
> > > > >