Where we mostly use label in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Where we mostly use label in html

24th Apr 2017, 6:54 AM
dípàk kãtvē
dípàk kãtvē - avatar
3 Answers
+ 15
<label> is mostly used with the <input> tag to denote or label an input field the kind of input is expected. Another alternative is to use placeholder attribute along with the input tag.
24th Apr 2017, 7:21 AM
Wisdom Abioye
Wisdom Abioye - avatar
+ 7
as regular input can have a placeholder the label comes in handy when the input type is a checkbox or select tag or just angthing without placeholder actually xD
24th Apr 2017, 7:34 AM
Burey
Burey - avatar
+ 6
it is commonly used with input tag
24th Apr 2017, 7:36 AM
Siddharth Saraf