+ 6
Html name
What does the name is actually used? <input type="text" name="first name">
7 Respuestas
+ 4
The name attribute specifies a name for a form.
+ 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.
+ 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.
+ 2
Maybe this other recent thread will help:
https://www.sololearn.com/Discuss/1603597/?ref=app
+ 2
They will be helpful in form submissions and related things to identify a field
+ 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
+ 1
Hyper Text Markup Language