Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
The HTML <input> name Attribute is used to specify a name for an <input> element. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript. Example An HTML form with three input fields; two text fields and one submit button: <form action="/action_page.php"> <label for="fname">First name:</label> <input type="text" id="fname" name="fname"><br><br> <label for="lname">Last name:</label> <input type="text" id="lname" name="lname"><br><br> <input type="submit" value="Submit"> </form>
30th Sep 2021, 5:51 PM
Arun Jamson
Arun Jamson - avatar