Share
form Attribute
The form attribute specifies one or more forms the input field belongs to.
Note: The form attribute works with all
types.
The form attribute must refer to the id of the form it belongs to:
<form action="demo_form.asp" method="get" id="user_form">
First name: <input type="text" name="fname" />
<input type="submit" />
</form>
Last name: <input type="text" name="lname" form="user_form" />
Note: To refer to more than one form, use a space-separated list.