HTML - Label

> (World Wide) Web - (W3|WWW) > HyperText markup Language (HTML)

1 - About

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

3 - Example

  • With the id and for attributes

<label for="username">Click me</label>
<input type="text" id="username">

  • Without

<label>Click me <input type="text"></label>

Advertising
web/html/label.txt · Last modified: 2019/02/09 11:29 by gerardnico