+ 1

<input type="checkbox" name="gender" value="2" />Female <br /> what is value ="2" mean here

Value in html

27th Aug 2020, 11:53 AM
Stark
Stark - avatar
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
27th Aug 2020, 11:55 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
Why we use html in real life
27th Aug 2020, 11:56 AM
Stark
Stark - avatar
0
The course in here explains the Detail of html, https://www.sololearn.com/learn/HTML/1021/
27th Aug 2020, 11:58 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar