label


lable represents the lable of an input control, when user clicks on the lable it will select or set the focus on the corresponding input control.

Syntax:

<label for="inputcontrolidhere">lablenamehere</label>

Example:

<html> <head> <title>HTML Tutorial</title> </head> <body> <div> <label for="txtname"> Name : </label> <input type="text" id="txtname" /> </div> </body> </html>

Output: