Forms | Sololearn: Learn to code for FREE!



What is the meaning of (value=“1”) in :- <input type=“checkbox” name=“gender” value=“1” /> <br /> <input type=“checkbox” name=“gender” value=“2” /> <br /> ?

4/2/2020 3:43:51 PM

varun menghani

3 Answers

New Answer


varun menghani If i am not mistaken, its the value that will be sent to the server to distinguish wich choice the person made, or took both choices, its like an ID for each one👍. It is better to clear the doubts of lessons in their comment section below😃.


“value” is the default text that will appear written in a text input, in this case 1 and 2.


En el ejercicio 11 como sería HTML