The problem with the code below is that the content of the <legend> will be read before every <label>. That makes it very difficult for a screen reader user to read it fast. I would just have the question in a <p> or possibly even a header element.
Once the user has read through a few questions and realises that the structure is consistent, they won't need to listen to the whole of each label and they can very quickly skip through the form. Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Lo Sent: 03 December 2007 22:40 To: [email protected] Subject: Re: [WSG] Accessible likert scale (disagree/agree/strongly agree/etc) forms On 04/12/2007, at 12:07 AM, russ - maxdesign wrote: > Hi Nick, > > The sample code on this page you link to does not look ideal. As has > been mentioned on this list a few times, title attributes are often > ignored by screen readers. And the use of a table element to lay out > the form is a little odd. > > Unless I am missing something, I'd say it would be much better if it > marked up with standard form elements. For example (warning - code > below thrown together very quickly): > > <form action="#" method="get"> > <fieldset> > <legend>The product is a good value for the dollar</legend> > <label for="strongly-agree"><input name="likert" > id="strongly-agree" > type="radio" />strongly agree</label> > <label for="agree"><input name="likert" id="agree" > type="radio" > />agree</label> > <label for="disagree"><input name="likert" id="disagree" > type="radio" />disagree</label> > <label for="undecided"><input name="likert" id="undecided" > type="radio" />undecided</label> > <label for="strongly-disagree"><input name="likert" > id="strongly-disagree" type="radio" />strongly disagree</label> > <input name="submit" id="submit" type="submit" > value="Submit" /> > </fieldset> > </form> > > You can then use CSS (and a hammer if needed) to position these form > elements exactly as you want. That does help Russ, thanks. As I said to Steve though I do wonder how much fun using JAWS or such like would be going through all that for 20 similar questions! Nick ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
