The form Attribute

The form Attribute

<form action="/action_page.php" id="form1">
  First name: <input type="text" name="fname"><br>
  <input type="submit" value="Submit">
</form>

Last name: <input type="text" name="lname" form="form1">

Specifies one or more forms an <input> element belongs to.

Related concepts

The form Attribute — Structure map

Clickable & Draggable!

The form Attribute — Related pages: