|
Forms -- Dos and Don'ts
Why: Well-meaning designers often error on the other side of accessibility: adding too much information. Be aware that users with disabilities want to use the web in the same way as other users: they want to access information and perform necessary tasks quickly and easily. Adding verbose directions only adds to the clutter of a site. If the directions are important, put them in the main body of the form, where everyone can see them and benefit from them. How: Create a label that describes the function of the element or the required information and is as short as possible. Good
label: Too much information label:
Why: Older versions of assistive technology software may still be unable to associate form controls with their labels requiring users to first read the label, then find the form control. How: Place labels immediately adjacent to form elements. If you use tables to layout the form, put both the form label and element in the same cell.
Why: Form elements without explicitly associated labels will be read as "blank." Finding out which information belongs in which "blank" box is difficult, at best. How: Use the "for" attribute in the label and the "id" attribute in the element. Example HTML code:
Why: Users of assistive technology frequently fill-out forms out-of-order (that is, not top-down, left-to-right). Specifying a tab order helps insure that all form elements can be accessed with a keyboard and that keyboard users can navigate the form in a logical way. How: Use the "tabindex" attribute in the element. You must specify a tabindex for each element in your form. Example HTML code:
Why: JavaScript events, such as the "OnClick" don't always work for keyboard users. Access keys establish keyboard shortcuts for frequently used or important functions of the form or page. How: Use the "accesskey" attribute in the element. Example HTML code:
Get more help with forms, visit WebAIM's "Creating Accessible Forms."
Top
of Page || Return to Index |