Notes on applying multiple labels for a control using the label element

Posted on Thursday, 24 May 2012 by Steve Faulkner

While it is conforming to have multiple label elements pointing to a single control for labelling purposes, it is not recommended. It has been conforming as per (X)HTML specifications for many years, but it is not robustly supported. Other techniques such as wrapping the label around text and control and aria-labelledby do the job better and are much better supported in modern browsers and assistive technology.

multiple labels for a control using the label element

Notes, examples and recommendations

Further Reading

HTML5 Accessibility Chops: form control labeling


About Steve Faulkner

Steve is the Senior Web Accessibility Consultant and Technical Director, TPG Europe. He joined The Paciello Group in 2006 and was previously a Senior Web Accessibility Consultant at Vision Australia. He is the creator and lead developer of the Web Accessibility Toolbar accessibility testing tool. Steve is a member of several groups, including the W3C HTML Working Group and the W3C Protocols and Formats Working Group. He is an editor of several specifications at the W3C including HTML 5.1, Using WAI-ARIA in HTML and HTML5: Techniques for providing useful text alternatives. He also develops and maintains HTML5accessibility

Comments

  1. How do you feel about using a label and aria-describedby to attach a secondary bit of information. Maybe something like this.
    Appointment

    Date must be in this format mm/dd/yyyy

    It seems to me this would be more appropriate for the secondary information.

  2. Hi Ted,
    In theory, I agree that use of aria-describedby is the better choice, but in practice at the moment, aria-describedby is less robustly supported across AT/browsers/OS’s than aria-labelledby. Also the content in this case will will be recieved by a screen reader user in the same way if either is used i.e. the label and labelledby or the label and describedby, text will be announced when the control recieves focus.

Comments for this post are closed.

Recent Posts

See all posts in the blog archive

Sometimes people ask me where to go for help making their web sites accessible and TPG is always the first thing on my mind because people like Steve Faulkner are right there at the forefront of pushing web accessibility forward. They totally 'get' that to be truly effective in this area you need to understand the whole accessibility ecosystem from assistive technology, to accessible applications, to web standards and so on… this kind of expertise is rare.

David Bolter, Engineering Manager Accessibility - Mozilla