html form with submit button code example
Example 1: html submit button
<input type="submit" value="Submit">
Example 2: html form
<form action="/action.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" value="Mike"><br><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" value="Walker"><br><br>
<input type="submit" value="Submit">
</form>
Example 3: submit button
<button type="submit" form="form1" value="Submit">Submit</button>
Example 4: how to use form on submit in html
<form onsubmit="myFunction()">
Enter name: <input type="text">
<input type="submit">
</form>