HTML label tag

The HTML <label> tag represents a caption to a user interface control (usually a form control, however, it could be any phrasing content).

The <label> element allows you to attach a caption/label to a control so that the user knows what the control is for. For example, an input field that accepts the user’s first name might have a label of “First Name: “.

Some browsers enable users to select a radio button or checkbox option by clicking on its <label> element.

<p>Which prize do you prefer?</p>
<label><input type="radio" name="prize" value="house" />House</label>
<label><input type="radio" name="prize" value="money" />$1 million</label>
<label><input type="radio" name="prize" value="none" />No prize thanks, I'm already happy :)</label>

Eg. :

Which prize do you prefer?