CLOSE

Label Tag

The <label> tag is used to create labels for form inputs.

<form>
    <label for="name">Name</label>
    <input type="text" id="name" name="name">
</form>
Expand

Attributes

  • for - ID of the input the label relates to.

Help Us to Help You

This website and it's tutorials are only made possible with your support. Support money goes towards keeping our servers online.

Amount

Link to Us

Spread the word! Let people know about our tutorials by placing links on blogs, websites, forums and other places.

HTML Link

Copyright 2019 Step By Step HTML. All Rights reserved.