HTML <label> tag

HTML <label> tag : Definition

• The <label> tag is used to display the label/caption/title for an <input> element of a form.

• The label element is a normal text which tell users what shuld be entered into the associated input field.

• The text must be written and enclosed with <label> </label> element.

Html <label> tag example

<!DOCTYPE html>

<form action="#" method="post">
  <label for="tutorial">Favorite Tuturial :</label>
  <input name="best-language" id="best-language">
 <input type="submit" value="Submit">