+ 1
<input type="checkbox" name="gender" value="2" />Female <br /> what is value ="2" mean here
Value in html
3 Antworten
0
value attribute on input fields are the actual data which gets send to the server when the form is submitted..
In here, value can be anything which defines that particular checkbox, 2 is used as a numeric representation to the Female checkbox
+ 1
Why we use html in real life
0
The course in here explains the Detail of html,
https://www.sololearn.com/learn/HTML/1021/