The <input> tag with a type="submit"
attribute creates a submit button.
When clicked, submit buttons send form data to a form handler.
An <input> element of type submit.
Clicking the Submit button sends the textbox values to the server.
<form action="/tutorial/action.html">
<fieldset style="background: #f6f8ff; border: 2px solid #4238ca;">
<legend>Contact information</legend>
<input type="text" name="firstname" placeholder="First name"><br /><br />
<input type="text" name="lastname" placeholder="Last name"><br /><br />
<input type="text" name="email" placeholder="Email"><br /><br />
<input type="text" name="phone" placeholder="Phone number"><br /><br />
<input type="submit" value="Submit">
</fieldset>
</form>
The <input type="submit">
specifies a submit button.
Clicking a submit buttons sends form data to a form handler specified by the action attribute on the form.
If the button's value is not set, it will default to Submit.
<input type="submit">
Here is when type="submit"
support started for each browser:
Chrome
|
1.0 | Sep 2008 |
Firefox
|
1.0 | Sep 2002 |
IE/Edge
|
1.0 | Aug 1995 |
Opera
|
1.0 | Jan 2006 |
Safari
|
1.0 | Jan 2003 |