HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML label Tag

HTML label Tag

 

 

The label tag defines a label for several input elements. It helps in better understanding by the reader or user.

 

Labels used in the following elements:-

 

  • < input type="datetime-local" >
  • < input type="email" >
  • < input type="file" >
  • < input type="tel" >
  • < input type="text" >
  • < input type="time" >
  • < input type="URL" >
  • < input type="week" >
  • < input type="month" >
  • < input type="number" >
  • < input type="password" >
  • < input type="radio" >
  • < input type="range" >
  • < input type="search" >
  • < input type="checkbox" >
  • < input type="color" >
  • < input type="date" >
  • < progress >
  • < select >
  • < meter >
  • < textarea >

 

Attribute Explanation:-

 

Attribute Value Description
for element_id Specifies id of form element label should be bound to.
form form_id Specifies which form label belongs to.

 

Syntax:-

 

Its syntax is:- < label >

Code Explanation

All Tutorials related to HTML Tags List

All Sections related to HTML