VOOZH about

URL: https://www.geeksforgeeks.org/html/html-form-name-attribute/

⇱ HTML <form> name Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <form> name Attribute

Last Updated : 23 May, 2026

The name attribute in the <form> tag is used to specify a name for the form element. It helps identify the form in JavaScript and during form handling.

  • Assigns a unique name to the <form> element.
  • Used to reference the form in JavaScript.
  • Helps identify and manage forms easily.

Syntax: 

<form name="formName">
<!-- form elements -->
</form>

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

Comment
Article Tags: