Contents


On-line Guides
All Guides
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
Book Store

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions

 

 

Attribute for <LABEL ...>
FOR = "text string"

If the form element that should be associated with the text in <LABEL ...> can't be contained within <LABEL ...>, such as when the form element in another table cell, use FOR. The value of FOR is the ID of the form element. Note that it is not the name of the field (as given with the NAME attribute) it is the ID as given with the ID attribute. So, for example, this code associates the text "join mailing list?" with the checkbox field that has the ID "joinlist":

This code:

<TABLE BORDER=1 CELLPADDING=5>
<TR> <TD><LABEL FOR="joinlist">join mailing list?</LABEL></TD>
     <TD><INPUT TYPE=CHECKBOX NAME="joinlist" ID="joinlist"></TD>
     </TR>
</TABLE>

produces this:

 
 
  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire