Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

2506 Posts in 649 Topics- by 1316 Members - Latest Member: kortuem

eTicket CommunityDevelopmentCore System DevelopmentFeature Requests (Moderators: jason, Hummdis)Topic: Use the label HTML tag in forms
Pages: [1]   Go Down
Print
Author Topic: Use the label HTML tag in forms  (Read 1883 times)
0 Members and 1 Guest are viewing this topic.
Charybdis
New Member
*

Karma: +0/-0
Offline Offline

Posts: 25


« 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
eTicket CommunityDevelopmentCore System DevelopmentFeature Requests (Moderators: jason, Hummdis)Topic: Use the label HTML tag in forms
Jump to: