Explain the name attribute in input tags | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Explain the name attribute in input tags

Why the name attribute is used in all input tags ?

3rd Sep 2020, 5:57 PM
Deleted Account
Deleted Account - avatar
2 Answers
+ 2
To use those inputs in our backend. For example - Input fields in forms can have a name attribute, when the user submits these input field values, we as programmers can access these values in our backend(let's say php file) using the name attribute assigned in our front end(html) and use it accordingly.
3rd Sep 2020, 6:24 PM
Hitesh Datt
Hitesh Datt - avatar
+ 2
Wow , 🎃 Thanks bro 🎉 🍹
3rd Sep 2020, 6:26 PM
Deleted Account
Deleted Account - avatar