Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <input type="submit">

❮ HTML <input> type attribute

Example

Define a submit button:

<input type="submit">
Try it Yourself »

Definition and Usage

The <input type="submit"> defines a submit button which submits all form values to a form-handler.

The form-handler is typically a server page with a script for processing the input data.

The form-handler is specified in the form's action attribute.


Browser Support

Attribute
type="submit" Yes Yes Yes Yes Yes

Syntax

<input type="submit">

❮ HTML <input> type attribute