set a button to submit a form code example
Example 1: how to submit a form with submit button outside form
<div>
<form id="my-form">
<label for="name">Name:</label>
<input type="text" name="name"></input>
</form>
<!-- ... -->
<button type="submit" form="my-form">Submit</button>
</div>
Example 2: submit button
<button type="submit" form="form1" value="Submit">Submit</button>