0

What is difference <label> input <label>and <label><label> after input ?

<label>do you like peas ? </label> <input type="checkbox" name="peas"> <label>do you like peas ? <input type="checkbox" name="peas"> </label>

7th Oct 2020, 4:16 PM
Kodeesh Warar
Kodeesh Warar - avatar
1 Réponse
+ 2
Label tag act as a caption for input tags for example if you used a label with input type radio then if you will check the label text then also your radio will be checked.
7th Oct 2020, 4:20 PM
Ayush Kumar
Ayush Kumar - avatar