+ 7

what's the use of lable tag

i didnt understand the use of lable tag and happy republic day to all indians🇮🇳🇮🇳🇮🇳

26th Jan 2017, 6:06 AM
Prashanth Kumar
Prashanth Kumar - avatar
2 odpowiedzi
+ 4
<label> is used to put a text associated to and beside an input ( usually checkbox or radio button )... Formaly, you can put a text without the <label> tag, but associate it with label behaviour allow user to click the text as he click the <input>, so the user avoid to target the little checkbox or radio button ;) In addition, semanticaly, the document is better describe, keep your page better ranking by search engines and provide a cool experience to blind people and others :)
26th Jan 2017, 6:23 AM
visph
visph - avatar
+ 1
you know that HTML 5 is traying to me more semantic, so label is to identify the label of an input
26th Jan 2017, 6:16 AM
Jesus Guerrero
Jesus Guerrero - avatar