Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 the <label> tag
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

red1
Junior Member

355 Posts

Posted - 18 September 2002 :  12:31:05  Show Profile
This has been discussed several times before, but it seems it has never made it to the snitz base code. It would be better for accessibility if the <label> tag was used for the text associated with form elements. For instance, instead of:
<input type="checkbox" name="SavePassWord" value="true" tabindex="-1" CHECKED>
<b>Save Password</b>


We could use:
<input id="savepwd" type="checkbox" name="SavePassWord" value="true" tabindex="-1" CHECKED>
<label for="savepwd"><b>Save Password</b></label>


That way, you could click the text label to toggle the form element.

My Mods:
New Events Calendar
New Non-database Active Users

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 18 September 2002 :  15:18:41  Show Profile
Would be nice if this could be added to v4

Probably better to set the id to the same value as the name where possible.
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 18 September 2002 :  15:47:11  Show Profile
Taken to the to-do list of v4

Stop the WAR!
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 September 2002 :  22:23:35  Show Profile
Does all browsers support this tag?

Support Snitz Forums
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 18 September 2002 :  23:03:36  Show Profile
quote:
Originally posted by Davio

Does all browsers support this tag?


It is part of HTML 4 specification, supported by IE 4+ and NS 6+... I have no info about other yet, but the worst case is that it gets ignored...

Stop the WAR!
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 18 September 2002 :  23:10:59  Show Profile
According to this, it is also Opera 4+ compatible...

Stop the WAR!
Go to Top of Page

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 19 September 2002 :  04:06:53  Show Profile
See here if you want: http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.9
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07