html input label
snippet in html

how to use the label tag in html

user4533

<label for="id_of_what_you're_labeling"></label>

<!-- for example-->
<label for="username"></label>
<input type="text" id="username">

html input label

user7541

<!-- By reference -->
<label for="first_name">First Name</label>
<input type="text" id="first_name" name="first_name">

<!-- By wrapping -->
<label>First Name
  <input type="text" name="first_name">
</label>