W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2012

(wrong string) ‚€œaria-labelledby‚€ on already labeled input elements?

From: Ian Yang <ian.html@gmail.com>
Date: Fri, 22 Jun 2012 19:52:55 +0800
Message-ID: <CAFhBhuOPJeKDjXOpPEY2CRKKfjxP7XvJAZ8sPFsrWs7A88Fj8w@mail.gmail.com>
To: w3c-wai-ig@w3.org
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

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:44 UTC