How do these 'name' and 'value' attributes in the <input ...> tag work? I mean what do they mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do these 'name' and 'value' attributes in the <input ...> tag work? I mean what do they mean?

is it necessary to put those attributes? I did not see any meaning of them in the form. please edify me. thanks.

17th May 2017, 4:14 PM
Bikash Thapa
Bikash Thapa - avatar
1 Answer
+ 1
If you create a server-side application both the name and value are required to receive data from request. You can skip setting the value if you want user to do it.
17th May 2017, 4:30 PM
Krzysztof Przybylowski
Krzysztof Przybylowski - avatar