Language

Input Type Submit Button


An <input type="submit"> is used in each form. When the user clicks this submit button, all the information in the form is sent to the server.

The value attribute is used in the <input type="submit"> button. The value of this attribute is displayed as the label on the button.

Certain attributes can be used with this element. These attributes are dirname, formation, formenctype, formmethod, formnovalidate, formtarget, popovertarget, and popovertargetaction.

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form>
        <label for="user-name">Full Name</label>
        <input type="text" id="user-name"> <br><br>
        <input type="submit" value="Submit">
    </form>
</body>
</html>