TRENDING TOPICS

×

<label> tag in HTML

The <label> tag is used to add a label to a form control like text, textarea OR <button>, <input>, <meter>, <output>, <progress>, <select>, etc.

  • Open and close tag required of <label>.

Example of <label> tag

Result Look Like




Male
Female
Other

<label> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<label> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

Attribute Value Description
for element_id Defines which form element a label is bound to
form form_id Defines one or more forms the label belongs to

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at "advertise@gdatamart.com"

© 2021 GDATAMART.COM (All Rights Reserved)