<input type="submit">
<input> elements of type submit are rendered as buttons. When the click event occurs (typically because the user clicked the button), the user agent attempts to submit the form to the server.
Browser support
| Feature | Desktop | Mobile | ||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Chrome Android | Safari iOS | |
| 1 | 12 | 1 | 1 | 18 | 1 | |
1+Supported (version) Not supported ※Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 1 item(s)
Implementation note
- Unlike other browsers, Firefox by default persists the dynamic disabled state of a `<button>` across page loads. Use the `autocomplete` attribute to control this feature.
Syntax
HTML
<form action="/api/submit" method="post">
<input type="text" name="name" required>
<input type="submit" value="送信する">
</form> Live demo
formaction / formmethod topwrite
Submitbutton per and to Submitdestination or method specifiedpossible.
PreviewFullscreen
Use cases
-
Using <input type="submit">
<input> elements of type submit are rendered as buttons.
Cautions
- May not be supported in older browsers.
Accessibility
- Verify how this element is announced by screen readers.