Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
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
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

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

  




 

 

<LABEL ...>

  • FOR: form element for which this is a label

<LABEL ...>, an HTML 4.0 element supported by MSIE and Netscape 6, defines a set of text that is associated with a particular form element. For example, this code indicates that the phrase "send more information" is associated with the moreinfo checkbox because the checkbox is within the <LABEL ...> element:

this code produces this
<LABEL FOR="moreinfo">
send more information 
<INPUT NAME="moreinfo" TYPE=CHECKBOX ID="moreinfo">
</LABEL>

The FOR attribute is required. The value of FOR should be the same as the value of ID in the form field that the label applies to.

You can also associate a <LABEL ...> with a field that is not within its contents. See the FOR attribute.

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