[access-uk] Re: accessible html forms

  • From: "Tink Watson" <tink@xxxxxxxxxx>
  • To: <access-uk@xxxxxxxxxxxxx>
  • Date: Sat, 12 Mar 2005 14:18:52 -0000

MessageDamon,

    It's worth checking that form labels have been applied properly. With radio 
buttons there is no way to explicitly associate a single label with a series of 
radio buttons. Only a single label can be applied to each individual radio 
button and a relationship between them then established through the name 
attribute. For example:

<p>
What is your favourite colour?
<br />

<input type="radio" name="colour" id="red" value="red" /><label 
for="red">Red</label>
<input type="radio" name="colour" id="blue" value="blue" /><label 
for="blue">Blue</label>
<input type="radio" name="colour" id="green" value="green" /><label 
for="green">Green</label>
</p>

    I suspect your form may not have labels at all for this series of radio 
buttons, or if there is a label it has been wrapped around the question or at 
least associated with all the radio buttons as a group. 

    The problem with the solution, is that the question isn't read out when in 
forms mode, so your best bet is to make sure that each radio option makes 
logical sense, as in:

<p>
What is your favourite colour?
<br />

<input type="radio" name="colour" id="red" value="red" /><label for="red">My 
favourite colour is red</label>
<input type="radio" name="colour" id="blue" value="blue" /><label for="blue">My 
favourite colour is blue</label>
<input type="radio" name="colour" id="green" value="green" /><label 
for="green">My favourite colour is green</label>
 </p>

    Hope this makes some sense.

Cheers,
Tink.
  ----- Original Message ----- 
  From: Damon Rose 
  To: access-uk@xxxxxxxxxxxxx 
  Sent: Wednesday, March 09, 2005 12:00 PM
  Subject: [access-uk] accessible html forms 


  Wondering if anyone could help me on the accessibility of forms. I've looked 
at the RNIB's access centre website but it's not very clear. 

  WE're putting together a survey on the Ouch website at the moment. 

  Our screenreader access issue goes like this: 

  1: you land on the question 

  2: you arrow down thru the options but, before every option the question is 
read out again. 



  When the question is very very long, this causes issues. 



  Is there a way of getting to the question on the survey, hearing the question 
only once and then arrowing thru the radio button option but only hearing the 
option not the question and option every time you arrow down? 



  Any thoughts appreciated.  



  ...Damon 

  damon.rose@xxxxxxxxx 


  http://www.bbc.co.uk/

  This e-mail (and any attachments) is confidential and may contain
  personal views which are not the views of the BBC unless specifically
  stated.
  If you have received it in error, please delete it from your system. 
  Do not use, copy or disclose the information in any way nor act in
  reliance on it and notify the sender immediately. Please note that the
  BBC monitors e-mails sent or received. 
  Further communication will signify your consent to this. 

Other related posts: