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

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

Received on Friday, 22 June 2012 11:53:24 UTC