<LABEL>...</LABEL>
Attach information to a specific field of a form. It is possible to attach more
than one label to a field.
<!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text -->
<!ATTLIST LABEL
%attrs; -- %coreattrs, %i18n, %events --
for IDREF #IMPLIED -- matches field ID value --
accesskey %Character; #IMPLIED -- accessibility key character --
onfocus %Script; #IMPLIED -- the element got the focus --
onblur %Script; #IMPLIED -- the element lost the focus --
>
from the HTML 4.0 DTD,
"Copyright ©
World Wide Web Consortium,
(Massachusetts Institute of Technology,
Institut National de Recherche en Informatique et en Automatique,
Keio University).
All Rights Reserved."
Core attributes:
class
id
style
title
Internationalization attributes:
dir
lang
Events:
onclick
ondblclick
onmousedown
onmouseup
onmouseover
onmousemove
onmouseout
onkeypress
onkeydown
onkeyup
ACCESSKEY
Description of the accesskey attribute
FOR
This attribute attaches the label to a specific field in the form. The value
for this attribute must be the same as the value of the id attribute for the
field that is being attached.
ONBLUR
Description of the ONBLUR attribute
ONFOCUS
Description of the ONFOCUS attribute
 |
<FORM>
<LABEL for="name">Name</LABEL>
<LABEL for="address">Address</LABEL>
<LABEL for="city">City</LABEL>
<LABEL for="country">Country</LABEL>
<INPUT type="text" name="name"><BR>
<INPUT type="text" name="address"><BR>
<INPUT type="text" name="city"><BR>
<INPUT type="text" name="country">
</FORM>
|
|
 |
|