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

Re: label vs aria-labelledby

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Mon, 27 Jun 2011 15:14:09 +0100
Message-ID: <BANLkTi=YO-pXgZMvxDETEf73819Ppj+VbQ@mail.gmail.com>
To: greg_kraus@ncsu.edu
Cc: w3c-wai-ig@w3.org
Hi Greg,
if the label element (for/id) can be used then use it (as it is the most
robust method), if the label element cannot be used then it may be
appropriate to use the title attribute or aria-labelledby or aria-label (on
the form control).

You do not and should not duplicate the labelling of form control elements.


regards
Stevef

On 27 June 2011 15:02, Greg Kraus <greg_kraus@ncsu.edu> wrote:

> Hi All,
>
> In 4.1.1 Labelling
>
> http://www.w3.org/TR/wai-aria-practices/#relations_labeling
>
> It says, "It should be noted that (X)HTML provides a <label for>
> element which you can use to label form controls. For all visual
> objects, including (X)HTML form elements, you should use the WAI-ARIA
> aria-labelledby property for labeling."
>
> Does this mean that in all cases for forms we should be using
> aria-labelledby to properly label input elements even when
> aria-labelled by is not needed? If so, does that mean we need to use
> both the label element and the aria-labelledby attribute? Currently,
> if you use both the label and aria-labelled by, JAWS speaks the label
> twice. It is the only major screen reader that has this behavior - all
> of the others only speak the label once.
>
> Thanks.
>
> Greg
>
> --
> Greg Kraus
> University IT Accessibility Coordinator
> Office of Information Technology
> North Carolina State University
> 919.513.4087
>
>


-- 
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 Monday, 27 June 2011 14:14:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:36 GMT