asp.net.ph

Skip Navigation Links

LABEL Element | LABEL Object

Language References


Specifies a label for a form control.HTML 4, 4.01, 5

HTML Syntax

Remarks

Some form controls automatically have labels associated with them [push buttons], while most do not [text fields, checkboxes, radio buttons and menus].

For those controls that have implicit labels, browsers use the value of the value attribute as the label string.

The LABEL element is used to specify labels for controls that do not have implicit labels.

If the user clicks the label with the mouse, the onclick event goes to the label and then bubbles to the control specified by the htmlFor property. Pressing the accesskey for the label is the same as clicking the mouse on the label.

Labels cannot be nested.

Members

LABEL Members

See Also

accessKey



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note