Re: The purpose of using “aria-labelledby” on already labeled input elements?

Hi Ian,
there is no need as you have said, the programmatic association is provided
via the label for/id

aria-labelledby can be useful when you have mutiple sources for a label:

example: http://www.html5accessibility.com/tests/mulitple-labels.html

regards
Stevef

On 22 June 2012 12:52, Ian Yang <ian.html@gmail.com> wrote:

> Hi everyone,
>
> I have seen many ARIA tutorial websites use codes such as the following
> one:
>
>> <label for="name" id="label-name">Your Name</label>
>>
>> <input  id="name" aria-labelledby="label-name" type="text">
>>
>>
> Since the input element has already been labeled by the label element
> which is using for attribute, I'm wondering what the purpose of using
> aria-labelledby attribute is in the above case.
>
> I'm pretty new to ARIA, so am hoping that someone could clear up my
> confusion. Thanks in advance.
>
>
> Kind Regards,
> Ian Yang
>



-- 
with regards

Steve Faulkner
Technical Director - TPG

www.paciellogroup.com | www.HTML5accessibility.com |
www.twitter.com/stevefaulkner
HTML5: Techniques for providing useful text alternatives -
dev.w3.org/html5/alt-techniques/
Web Accessibility Toolbar - www.paciellogroup.com/resources/wat-ie-about.html

Received on Friday, 22 June 2012 12:04:23 UTC