+ 6

Html name

What does the name is actually used? <input type="text" name="first name">

29th Nov 2018, 10:07 AM
harshit
harshit - avatar
7 Respuestas
+ 4
The name attribute specifies a name for a form.
29th Nov 2018, 10:47 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 3
It's for the server side program, such as php or Node.js to process the data. In Sololearn code playground, if you want this name attribute to be used, you need to use some api of cloud server. Otherwise, you can only use the class and id attributes, and then use javascript which is client side programming to process the data and show the results.
30th Nov 2018, 4:40 PM
Gordon
Gordon - avatar
+ 2
The actual use of name attribute is to pass form element value. What I mean is that the name attribute is necessary if you want the form element to pass it's value while submitting the form.
29th Nov 2018, 10:58 AM
Rishi Anand
Rishi Anand - avatar
+ 2
Maybe this other recent thread will help: https://www.sololearn.com/Discuss/1603597/?ref=app
29th Nov 2018, 11:00 AM
Janning⭐
Janning⭐ - avatar
+ 2
They will be helpful in form submissions and related things to identify a field
29th Nov 2018, 1:54 PM
Seniru
Seniru - avatar
+ 2
As far as I know... The name is actually the forms input fields name, although the name may not be displayed in the form itself, it can be later used to point to this specific input of the form. It can also be used get certain outputs based on the user's input in the form
29th Nov 2018, 5:19 PM
Nashid Ayman
Nashid Ayman - avatar
+ 1
Hyper Text Markup Language
6th Dec 2018, 5:12 PM
Daramola Damilare Timileyin