HTML <input> type="submit"

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.

Contact information

<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">

Using input type="submit"

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">

Browser support

Here is when type="submit" support started for each browser:

1.0 Sep 2008
1.0 Sep 2002
1.0 Aug 1995
1.0 Jan 2006
1.0 Jan 2003

You may also like

 Back to <input>

Author: Jack Poorte
Published: Jun 20 2021
Last Reviewed: Sep 30 2023

What's your favorite/least favorite part of Dofactory?