HTML - Label

About

The label html element represents a caption for an item in a form (user interface).

Example

With the id and for attributes

<label for="username">The name of the user: </label>
<input type="text" id="username">

Without

<label>The name of the user: <input type="text"></label>

Documentation / Reference


Powered by ComboStrap