Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <form> name Attribute

  • Last Updated : 27 May, 2019

The HTML <form> name Attribute is used to specify the name of a form Element. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript.


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<form name="name"> 

Attribute Values: It contains a single value name which describes the name of the <form> element.


<!DOCTYPE html>
<body style="text-align:center;">
    <h1 style="color:green;"
    <h2>HTML Form name Attribute.</h2>
    <form id="users" action="#" name="Geeks">
        First name:
        <input type="text" name="fname" value="Manas">
        <br> Last name:
        <input type="text" name="lname" value="Chhabra">
        <input type="submit" value="Submit">


Supported Browsers:

  • Google Chrome
  • Firefox
  • Edge
  • Opera
  • Apple Safari
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!