WebAIM - Web Accessibility In Mind

E-mail List Archives

example use of aria-labelledby

for

From: Angela French
Date: Jul 22, 2013 3:30PM


Hello,
I am trying to find a good real-word use of aria-labelledby. The examples I found seemed like they were just substituting the use of ARIA for the html <label> tag. I wrote this one and wondering if I'm getting the use of this ARIA attribute correctly.

<p id="children">Provide the names of your children in the order of birth</p>
<label id="child1">First Child</label><input type="text" for="child1" aria-labelledby="children">
<label id="child2">Second Child</label><input type="text" for="child2" aria-labelledby="children">
<label id="child3">Third Child</label><input type="text" for="child3" aria-labelledby="children">


Thanks,


Angela French
Internet Specialist
State Board for Community and Technical Colleges
360-704-4316
<EMAIL REMOVED>
http://www.checkoutacollege.com/
http://www.sbctc.edu