[advanced search]
22 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Webmaster Tutorials
User Name
Password

Old 02-10-2006, 11:38 AM   · #1
shahid_146
NamePros Member
 
Trader Rating: (0)
Join Date: Sep 2005
Posts: 30
NP$: 57.00 (Donate)
shahid_146 is an unknown quantity at this point
Standardise Your Forms

Forms are one of the primary means of getting information from users and a basic element of any interactive website. With web standards, accessibility and usability on the menu everywhere, it is time to check your form for standards. This article is an attempt to cover both usability and accessibility aspects of forms. With all the necessary techniques applied to a form, it will look well organised, easy to use and accessible to audience with disabilities (specifically visual in this case) and those using a screen reader.

Use LABEL and TABINDEX
In addition to being able to select/focus a form element (e.g. input box, radio button) by clicking the element itself, you can make it possible for the users to click the label (text beside the element) and select it. The new LABEL tag makes it possible. You need to put a LABEL tag around the text for the element and then assign the id to the element itself:

<label for=”city”>City </label>
<input type=”text” name=”city” id=”city” />

TABINDEX should be used where necessary to make the form elements navigable through keyboard’s TAB key as required. You can skip the optional fields by using TABINDEX when desirable. Here is an example:

Checkbox 1: <input type=”checkbox” name=”model1” id=”model” tabindex=”1” />
Checkbox 2: <input type=”checkbox” name=”model2” id=”model” tabindex =”2” />

Grouping Fields using FIELDSET and LEGEND
Using these two amazing tags you can group similar form elements improving the overall presentation of the form and eliminating the need of using tables. The fieldset tag creates the boxes, and the legend tag creates the caption. Here is an example :

<fieldset>
<legend>Address Details</legend>
<p><label for=”line1”>Address Line 1</label> <input type=”text” name=”line1” id=”line1” /></p>
<p><label for=”line2”>Address Line 2</label> <input type=”text” name=”line2” id=”line2” /></p>
</fieldset>

Use OPTGROUP tags in your SELECT boxes to group similar items
To increase accessibility of drop down lists, the OPTGROUP tag can further break the items in small groups.

<select name="country">
<optgroup label="Europe">
<option value="fra">France</option>
<option value="rus">Russia</option>
<option value="uk">UK</option>
</optgroup>
<optgroup label="North America">
<option value="can">Canada</option>
<option value="mex">Mexico</option>
<option value="usa">USA</option>
</optgroup>
</select>

Always Use an ALT text with all IMAGE BUTTONS

Whenever you use an IMAGE as a button in an input tag, always define an ALT text for it :

<input type=”image” alt=”Submit” name=”imageButton” src=”images/btton.gif” width=”100” height=”30” />

maxlength and content type constraints
When trying to constraint a particular field to a maximum number of characters, take extra care and do reasonable research on the possible maximum number. Consider all different standards in different countries. A big example is the length of postcode field. It is different in different countries. If you are designing a form, which is supposed to be used by users in more than one country or internationally, make sure you do not constrain the postcode to a number, which would frustrate the users of another country. A similar problem can occur when you constrain a postcode field to only accept numeric values, which would for example annoy a UK user where postcode contains alphabets as well.
When using drop down lists to constrain users to be able to only select from a given list, it is often a better idea to provide an “other, please specify” field.

Unnecessary splitting of Fields
Unless there is a valid reason to split a field into more, it is often better to give user the choice. It will always take longer to fill many fields than few. For example splitting the name field into first name, middle name and surname. Similarly splitting an address field into street name, street number, city and state. In different regions across the world people use different formats of addresses and names. Some terms can be even confusing for users of other countries like state, province and county. In different countries the distribution is different. So unless there is a good reason behind splitting a field, it is often a good idea to give user the choice. For example in case of a name field you can provide one field named full name and let the users enter their names as and how they want.

http://www.binarytrends.com/article...-/-Usable-Forms


Please register or log-in into NamePros to hide ads
__________________
Shahid
Binarytrends

Last edited by shahid_146 : 02-10-2006 at 11:39 AM. Reason: Spelling mistake
shahid_146 is offline   Reply With Quote
Old 02-10-2006, 10:01 PM   · #2
Rowan W
NamePros Regular
 
Rowan W's Avatar
 
Name: Rowan Wigginton
Location: QLD, Australia
Trader Rating: (0)
Join Date: Dec 2004
Posts: 713
NP$: 1869.00 (Donate)
Rowan W will become famous soon enough
Rowan W is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Legal Forms for the Hosting Industry, (including Pre-release Sale Special) zerdomains Web Development Wanted 0 05-22-2005 05:59 PM
PLEASE READ: TOS/AUP/PP and more than 100 additional legal forms - One great price! zerdomains Web Development Wanted 0 04-27-2005 03:02 PM
Chapter 11 Contact Forms WebForging Webmaster Tutorials 4 02-27-2005 02:24 AM
Get TOS/AUP/PP and more than 100 additional legal forms - One great price! zerdomains For Sale / Advertising Board 0 02-13-2005 07:15 PM

Site Sponsors
Custom Logo Design http://www.mobisitetrader.com/ Buy Flash Arcade Game Script
Advertise your business at NamePros
All times are GMT -7. The time now is 04:49 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0