WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Explicit Link Between Radio Buttons and "Question" Label?

for

From: Tim Harshbarger
Date: Feb 13, 2003 5:39AM


Paul,

Thanks for answering my question. I greatly appreciate it. The possible solutions I kept coming up were not as elegant.

Thanks,
Tim
-----Original Message-----
From: <EMAIL REMOVED> [mailto: <EMAIL REMOVED> ]
Sent: Wednesday, February 12, 2003 4:59 PM
To: <EMAIL REMOVED>
Subject: RE: Explicit Link Between Radio Buttons and "Question" Label?



I put together a simple page with only one posible solution, but this is the
most straightfoward solution--the same one that Jukka explained in a
previous email. I have attached the test file to this message.

Again, this is not the only possible solution. If you wanted to, you could
get fancy by hiding the labels (strongly agree, agree, disagree, strongly
disagree) from the visual display by using CSS (style="display:none"), but
then you'd have to make sure that there is some other way for visual users
to understand the relationship between the input element and its meaning.

You could make the radio buttons appear horizontally by deleting the <br />
tags. You could get rid of the border, or make the border more prominent.
You could put a background color behind the text question. You could do all
kinds of things, but I tend to agree with Jukka that the simpler format may
be your best option.

If anyone else wants to post other, more creative solutions, I'd be happy to
see them too.

Paul Bohman
Technology Coordinator
WebAIM (Web Accessibility in Mind)
www.webaim.org
Center for Persons with Disabilities
www.cpd.usu.edu
Utah State University
www.usu.edu




-----Original Message-----
From: Tim Harshbarger [mailto: <EMAIL REMOVED> ]
Sent: Wednesday, February 12, 2003 3:09 PM
To: ' <EMAIL REMOVED> '
Subject: RE: Explicit Link Between Radio Buttons and "Question" Label?



This is a timely discussion for me. Today, I am reviewing an online survey
that has problems with how it is using radio buttons. However, the problem
extends beyond the group label to how the individual radio buttons are
labeled.
On each page of the survey, there are about 12 to 20 questions. On a page,
all the questions share the same possible multiple choice answers. For
instance, "Strongly Agree," "Agree", "Disagree," or "Strongly Disagree."
Those multiple choice labels are at the top of the column of each set of
radio buttons.
How would you write the HTML/XHTML for that so it fit standards and is
accessible?
Tim