Attribute for <LABEL ...>
FOR = "text string"
If the form element that should be associated with the text in <LABEL ...><LABEL ...><LABEL ...>FORFORNAMEID 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.