submit w3school code example
Example 1: html submit button
<input type="submit" value="Submit">
Example 2: how to use form on submit in html
<form onsubmit="myFunction()">
Enter name: <input type="text">
<input type="submit">
</form>
<input type="submit" value="Submit">
<form onsubmit="myFunction()">
Enter name: <input type="text">
<input type="submit">
</form>