<html>
<body>
<h2>The form Attribute</h2>
<p>The form attribute specifies one or more forms an input element belongs to.</p>
<form action="https://www.w3schools.com/action_page.php" id="form1">
First name: <input type="text" name="fname"><br>
<input type="submit" value="Submit">
</form>
<p>The "Last name" field below is outside the form element, but still part of the form.</p>
Last name: <input type="text" name="lname" form="form1">
</body>
<!-- Mirrored from www.w3schools.com/html/tryit.asp?filename=tryhtml5_input_form by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:25:16 GMT -->
</html>