Widely availableSupported across all major browsers. Safe to use in production.

Overview

The <input type="submit"> HTML element represents a button that triggers an action on its associated <form>, such as sending the form data to a 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

formsubmitbutton

Submit type in formde-ta Submitbutton create.

PreviewFullscreen

formaction / formmethod topwrite

Submitbutton per and to Submitdestination or method specifiedpossible.

PreviewFullscreen

input submit vs button submit

also formSubmit to usable that, button. side that.

PreviewFullscreen

Use cases

  • Using <input type="submit">

    The <input type="submit"> HTML element represents a button that triggers an action on its associated <form>, such as sending the form data to a server.

Cautions

  • May not be supported in older browsers.

Accessibility

  • Verify how this element is announced by screen readers.

Powered by web-features