CA Resources

Label

The label element defines a label for an input element, improving accessibility.

The label Element

The <label></label> element defines a label for several form elements.

The <label></label> element is useful for screenreader users.

The for attribute of the <label> tag should be equal to the id attribute of the <input /> element to bind them together.

<form>
  <label for="sname">Student Name</label>
  <input type="text" id="sname" name="sname">
</form>

On this page

Edit on GitHub