label
The
LABEL element associates a label
with a particular form control.
When a LABEL element receives focus (i.e. becomes the currently
'receptive' element), it passes the focus on to its associated control.
A label is explicitly associated with another control using the
for attribute of the LABEL and the id
attribute of the control (i.e. they're the same).
A control is implicitly associated with a LABEL by being
enclosed between its start and end tags; note that if you do this you
then cannot use table cells to lay out the two independently, since the
start and end LABEL tags must be in the same cell.
|