+ 2

What is the use of "name" attribute in HTML5 <input>??

Please tell me the use of this attribute..

21st Feb 2022, 3:38 AM
🔥©𝟐𝟎𝟐𝟒 𝐒𝐌𝐎𝐊𝐘 🔥
🔥©𝟐𝟎𝟐𝟒 𝐒𝐌𝐎𝐊𝐘 🔥 - avatar
4 Réponses
+ 1
The name attribute can be used to reference the element in Javascript. You can fetch the value entered by user in the input field using the 'Name' attribute. https://stackoverflow.com/questions/26061651/what-is-the-purpose-of-the-html-name-attribute https://www.w3schools.com/tags/att_name.asp
21st Feb 2022, 4:29 AM
Chetali Shah
Chetali Shah - avatar
+ 4
The name attribute specifies the name of an <input> element. The name attribute is used to reference elements in a JavaScript.
22nd Mar 2022, 1:32 AM
Vaibhav
Vaibhav - avatar
+ 1
Chetali Shah thanks for answer! Can u tell me the use if list attribute?
21st Feb 2022, 4:38 AM
🔥©𝟐𝟎𝟐𝟒 𝐒𝐌𝐎𝐊𝐘 🔥
🔥©𝟐𝟎𝟐𝟒 𝐒𝐌𝐎𝐊𝐘 🔥 - avatar
21st Feb 2022, 1:27 PM
Chetali Shah
Chetali Shah - avatar