eTicket Community
September 02, 2010, 03:16:29 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Got Bug? Please use the new tracker at http://www.eticketsupport.com/tracker
 
   Home   Help Search Login Register  
Quick Register
Choose username  Email                 
Verify password    Choose password 
I agree to Registration Agreement
Pages: [1]   Go Down
  Print  
Author Topic: Use the label HTML tag in forms  (Read 2893 times)
0 Members and 1 Guest are viewing this topic.
Charybdis
New Member
*

Karma: +0/-0
Offline Offline

Posts: 26


« on: October 19, 2008, 02:32:34 AM »

You should improve the HTML code of the default template. For usability and accessibility reasons you should use the label HTML tag in forms. Bad code:

Code:
<tr>
<td align="left"><b>Name:</b></td>
<td><input type="text" name="name" id="name" size="25" value=""></td>

</tr>

Better code:

Code:
<tr>
<td><label for="name">Name:</label></td>
<td><input type="text" name="name" id="name" size="25"></td>

</tr>

The description of the accessibility error by Webaim Wave:

ERROR: Form label missing
A form <input>, <select>, or <textarea> does not have a corresponding label
Logged
eTicket Community
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 2.775 seconds with 24 queries.

Google visited last this page Yesterday at 05:57:31 PM