HTML
  Home arrow HTML arrow Page 2 - Building Accessible Web Forms
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Building Accessible Web Forms
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 17
    2005-02-07

    Table of Contents:
  • Building Accessible Web Forms
  • The basics of form layout
  • Improving accessibility with the "label" tag
  • Styling "label" tags for greater accessibility
  • Adding usability to forms

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building Accessible Web Forms - The basics of form layout


    (Page 2 of 5 )

    Many Web designers have already built correct form layouts across several projects. Thanks to their vast experience, they're well seasoned as to the right visual presentation for them. Sometimes, however, designers use the wrong way to lay out some form elements. Let's see some general guidelines to properly set out our form controls.

    For most text inputs, the text (or label) tied to the form control should precede the control itself, either directly above or to the left. Probably, this is a common sense issue, generally well implemented on most forms. The inputs should be presented to the user in the following manner:

    Or, with the element labels positioned to the left:

    However, when we're using radio buttons and checkboxes, the form control should appear first, as depicted below:

    Or using radio buttons:

    Certainly, the examples should seem a little obvious for experienced designers all around, but people still make the mistake of inserting the radio button or check box element after the related text. Even worse, there are situations where the text is displayed in the middle of a sentence, making it extremely confusing for screen readers to properly interpret the content, since such readers expect the checkbox or radio button control to come before the text. In order to illustrate this practice, the image below shows a badly implemented radio button layout:

    As we can see, the screen reader will probably identify erroneously the radio button tied to "Yes" with the text "No", since this is the generic order usually presented for radio buttons. With form elements laid out this way, screen readers will nearly always choose "Yes" when, in fact, they want to say "No."

    With a little bit of common sense we should be able to build forms that are much more accessible for most people. Just by following some basic form layout rules, we're improving the overall site's accessibility.

    Laying out our form elements and sticking to the examples and guides  described above is a large step forward. But we can add more techniques for significantly increasing form accessibility, with minor effort. Just by adding the <label> tag to each text input element, we'd be noticeably enhancing accessibility levels. So, let's take a deeper look at this tag to discover further improvements applicable to our forms.

    More HTML Articles
    More By Alejandro Gervasio


       ·  The articles goes through the basic of building accessible forms, using some...
       · Accessibility of forms is only partly a technical issue. Adding labels is a grand...
       ·  Your point is good and valid. Certainly,optgroup is perfectly valid to be added...
       · Although I agree with this poster's views, I believe the article will open the eyes...
       · Hello,I hope that the use of label,fieldset and optgroup is well worthy to be...
     

    HTML ARTICLES

    - Tabular Database Forms with HTML
    - Using the Find Functions for HTML Database F...
    - Sorting for Database Forms with HTML
    - Edit and Other Database Form Functions with ...
    - More Database Form Functions with HTML
    - Database Form Functions with HTML
    - Using the HTML Table Element as a Recordset
    - Building Single Row Database Forms with HTML
    - Introduction to Database Forms with HTML
    - Another Look at Animation of Geographical Ma...
    - Animation of Geographical Map Regions
    - Changing and Moving Pictures with CSS
    - Clickable Geographical Map Regions
    - Gradient Creation with the HR Element
    - Text on HTML Images: Do it Yourself







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway