<label>
The <label> tag defines a human-readable label for an <input> or <form>.
The for attribute of the <label> tag should be equal to the id attribute of the related element to bind them together. If none is specified, it binds to its direct parent.
Attributes
Attribute | Type | Description |
---|---|---|
for | element_id | Specifies which document element a label is bound to |