asp.net.ph

Skip Navigation Links

FOR Attribute | htmlFor Property

Language References


Sets or retrieves the object to which the given LABEL object is assigned.

Syntax


Inline <LABEL FOR = sID...>
Script label.htmlFor = sID ]

Possible Values


sID String containing the identifier of the element to which the label element is assigned.

The property is read/write with no default value.

Remarks

This attribute explicitly associates the LABEL being defined with another control. When present, the value of this attribute must be the same as the value of the id attribute of some other control in the same document. When absent, the LABEL being defined is associated with the element’s contents.

Applies To

LABEL



© 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