HTML <input type="submit"> (original) (raw)

Last Updated : 23 May, 2026

The HTML element is used to create a submit button in a form. It sends the form data to the server when clicked.

**Syntax:

Attributes

**Note: The form handler is defined in the action attribute of the form.

**Example: We are using the HTML to create a submit button for a form. When clicked, it submits the form data (username and password) to the server for processing.

html `

HTML <input type="submit">

<form action="#">
    <label for="uname">User Name:</label>
    <input type="text" id="uname">
    <br><br>

    <label for="pwd">Password:</label>
    <input type="password" id="pwd">
    <br><br>

    <input type="submit" value="Submit">
</form>

`