Cheap VPS & Xen Server

Residential Proxy Network - Hourly & Monthly Packages

HTML Label Tag

The <label> tag is used to specify a label for an <input> element. It adds a label to a form control such as text, email, password, textarea etc.

HTML Label Tag Example

Let’s see the example of HTML label tag.

  1. <label for=“email”>EMAIL-ID:<br /> <input type=“email” value=“” name=“emailid” size=“30”
  2. placeholder=“Enter a valid email address”><br /><br />
  3. <label for=“phone”>PHONE NO:<br /> <input type=“text” value=“” name=“phno” size=“30”
  4. maxlength=“10” placeholder=“Enter a valid phone number” pattern=“[0-9]{10}”><br /><br />

Test it Now


Supporting Browsers

Element chrome_browser Chrome ie_browser IE firefox_browser Firefox opera_browser Opera safari_browser Safari
<label> Yes Yes Yes Yes Yes