0
what is use of name and value because command is still working when we remove name and value
<input type="radio" />Male <br />
1 Odpowiedź
+ 2
They are used to process the data after the form is submitted. the data processing is done using JavaScript or server-side PHP or other languages.
for example, in PHP you can use the name attribute to refer to the input and take the value attribute to get the input data.