Re: [Mailman-Developers] Hi! I'll be your intern for the summer :)
On Thu, Jun 15, 2006 at 09:01:12PM -0400, emf wrote:
I'm especially interested in getting any feedback, either on the wiki or here, about any and all WebUI - or UI in general - ideas in people's heads.
Hi Ethan,
I mentioned this about a year ago [1], it would be great if the Mailman templates, like the general list information page and the user specific options page, were accessible and standards compliant.
For instance when the end user views the current pages, they get form labels that are not explicitly associated with their controls.
Using the <label> element is the best way to ensure that people using screen readers and other assistive technology have access to all the information necessary to complete forms online. This makes it possible for screen readers to explicitly identify the onscreen text as a label for the <input> element. The <label> element and its for attribute were added to HTML specifically to support accessible labeling of form controls.
- The <label> element assigns a label to a form <input> element (one label to one input).
- The for attribute defines the explicit control that the label is associated with.
- The for attribute must match the <input> element's id attribute's value exactly.
- Each id attribute must be unique within a document.
Example <label> with for and id attributes markup:
<label for="name"> Your name <input id="name" name="name" title="Enter your first name." size="40" type="text" /> </label>
So...for each form control, place its label in a <label> element. A <label> is attached to a specific form control through the use of the for attribute. The value of the for attribute must be the same as the value of the id attribute of the form control.
When form fields are not labeled explicitly, screen readers will skip over the text on your form when users try to enter data. For example, a screen reader will simply say, "Edit" or "Edit box," forcing the user to guess what information is being requested. Screen readers will not speak any text on a form that is not placed inside a tag such as a link, label, button, or legend.
When form fields are labeled explicitly, the browser can tell the user definitively which label applies to the given control. Usually, clicking on the label positions the cursor in the form field, or toggles the value of radio buttons or check boxes. This is intuitive for many users and provides a larger target for the mouse.
Use of the <label> element is especially important if tables are used to lay out a form. Another advantage of using the <label> element is that you can have more control over how field labels appear, using style sheets.
Related forms accessibility references:
http://joeclark.org/book/sashay/serialization/Chapter12.htm http://www.accessify.com/features/tutorials/accessible-forms/ http://www.webaim.org/techniques/forms/ http://www.d.umn.edu/goto/accessibility#forms
Also adding alt attributes to images [2], using good html heading structure [3] [4], and validating to W3C standards [5] [6] would aid accessibility.
All the best, Laura
[1] http://tinyurl.com/ey8tu [2] http://www.d.umn.edu/goto/accessibility#alt [3] http://www.webaim.org/techniques/semanticstructure/ [4] http://www.d.umn.edu/goto/standards#structure [5] http://validator.w3.org/ [6] http://www.d.umn.edu/goto/standards#validation
Laura L. Carlson Information Technology Systems and Services University of Minnesota Duluth Duluth, MN 55812-3009 http://www.d.umn.edu/goto/webdesign/
Laura Carlson wrote:
I mentioned this about a year ago [1], it would be great if the Mailman templates, like the general list information page and the user specific options page, were accessible and standards compliant.
Thanks very much for your feedback, Laura! I am something of a standards fanatic; all the pages I've re-written so far have made heavy use of label (although I use the implicit label where possible), fieldset, legend, thead & tbody and the title attribute to provide as much support for assistive technologies and alternative renderings as I can.
Once I have a clear idea what form elements will be where, I am also going to add tabindex and accesskey attributes to the form elements.
Because all the mailman templates are a hideous mismatch of CAPS TAGS and lcase tags and all sort of tag-soupishness, I'm re-doing them all as xhtml strict.
Right now the xhmtml templates are all checked in at:
https://svn.sourceforge.net/svnroot/mailman/branches/soc2006-webui/Mailman/G...
I'm thinking I'm going to move the kid thing up to templates, move the existing templates back to their original location. There are too many advantages for me in switching over to mod_python, so for the moment my "backward compatibility" stance is to leave the old cgi-bin stuff as is and just focus on implementing everything using mod_python.
When form fields are not labeled explicitly, screen readers will skip over the text on your form when users try to enter data.
What's also lame is the way that the user can't click on the label to toggle/enter the input item.
Thanks for all the references. If you know of a way that I can actually test JAWS or another screen reader, I would be grateful for the pointer.
~ethan fremen
participants (2)
-
emf
-
Laura Carlson