What is the use of value attribute in <input > element for forms? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the use of value attribute in <input > element for forms?

18th May 2020, 3:08 PM
Janvi Polam reddy
Janvi Polam reddy - avatar
4 Answers
+ 1
No value attribute is not manditary Name attribute is mandatory in PHP for form submition Value is used to add a default value to the input value Like in Google its inout had default value Search inside Input tag ✨ Muviee ✨ i think u had to revise PHP
18th May 2020, 3:15 PM
Abhay
Abhay - avatar
+ 2
✨ Muviee ✨ Not ur fault
18th May 2020, 3:20 PM
Abhay
Abhay - avatar
+ 1
Value attribute is mandatory in creating forms... It'll be usefull if we wanna process the user data using some server side programming language i.e PHP 😁 Did u got it?!!
18th May 2020, 3:12 PM
✨ Muviee ✨
✨ Muviee ✨ - avatar
0
Sorry got confused.. Abhay
18th May 2020, 3:20 PM
✨ Muviee ✨
✨ Muviee ✨ - avatar