+ 1

What is the use of "value" in html form input tag??

<form><input type="radio" name="gender" value="female"/>

19th Oct 2017, 10:07 AM
Divyanka Garg
Divyanka Garg - avatar
2 Answers
+ 2
it is attribute to the input tag as per ur ex which will provide value to the radio button. when html is rendered in web browser along with the radio button it has female value as u mentioned
19th Oct 2017, 11:07 AM
Nanda Balakrishnan
+ 2
it's for send the value of the radio when we use multiples radio ( like sens value by mailto ). <FORM> <INPUT type= "radio" name="tarif" value="day"> day tarif <INPUT type= "radio" name="tarif" value="night"> night tarif <INPUT type= "radio" name="tarif" value="week-end"> week-end tarif </FORM>
19th Oct 2017, 11:13 AM
sfeuh - avatar