WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: One Visible Label - Two Associated Input Fields

for

From: Moore,Michael (DARS)
Date: Apr 13, 2015 12:27PM


You will want to label the fields using either the title attribute or aria-label. Date of Birth would not provide sufficient information to tell you what to put in each of the two fields but title="Birth Month" and title="Birth Year" would make it clear. An alternative would be just to use one field for Date of Birth.

Mike Moore
Accessibility Coordinator,
Texas Department of Assistive and Rehabilitative Services
(512) 424-4159 (Office)
(512) 574-0091 (Cell)

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Thad C
Sent: Monday, April 13, 2015 12:56 PM
To: <EMAIL REMOVED>
Subject: [WebAIM] One Visible Label - Two Associated Input Fields

Greetings Group,

Can anyone tell me the most semantically correct and compliant way to associate a visible form element label (Date of Birth for example) with two text input fields (a Month field and a Year field for example).

Thank you