An simple HTML form with two input fields and related labels :
The <label> tag defines a label for an input element.
The label element does not render as anything special for the user. However, it provides a
usability improvement for mouse users, because if the user clicks on the text within the label
element, it toggles the control.
The for attribute of the <label> tag should be equal to the id attribute of the related
element to bind them together.
The <label> tag is supported in all major browsers.
Note: Not supported in Safari 2 or earlier versions.
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the
attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
The <label> tag supports the following standard attributes:
More information about Standard Attributes.
The <label> tag supports the following event attributes:
More information about Event Attributes.
Your Query was successfully sent!