Use of label element - Examples
HTML Element and type Example
input type="text"


<label for="t1">Your First Name</label>
<input type="text" id="t1" name="txtFirstName" />
input type="password"


<label for="t2">Your Passnumber</label><br />
<input type="password" id="t2" name="txtPassword" />
input type="button"

<input type="button" name="cmdChkAvail" value="Check Availability" />
input type="submit"

<input type="submit" name="cmdBookNow" value="Place Booking" />
input type="image"

<input type="image" name="search" src="../source/ButtonGo.gif" alt="Go" value="search" />
input type="radio"



<input type="radio" id="t3" name="radMarried" value="Yes" /> <label for="t3"> Yes, I am married</label><br />
<input type="radio" id="t4" name="radMarried" value="No" /> <label for="t4">No, I am single</label>
input type="checkbox"

<input type="checkbox" id="t5" name="chkSubscribe" value="Subscribe" /> <label for="t5">Subscribe to the newsletter</label>
select


<label for="t6">Title</label>
<select name="ddlTitle" id="t6">
<option>Mr</option>
...
</select>

textarea


<label for="t7">Your comments</label><br />
<textarea id="t7" name="txtComments"></textarea>
button

<button name="cmdBigButton">Go on, click me!</button>