kb/data/developer.mozilla.org/en-US/docs/Glossary/Submit_button-0.md

12 KiB

title chunk source category tags date_saved instance
Submit button - Glossary | MDN 1/3 https://developer.mozilla.org/en-US/docs/Glossary/Submit_button reference web, html, css, javascript, documentation 2026-05-05T05:46:20.696826+00:00 kb-cron

MDN HTML HTML: Markup language

HTML reference

HTML guides

Markup languages

CSS CSS: Styling language

CSS reference

CSS guides

Layout cookbook

JavaScriptJS JavaScript: Scripting language

JS reference

JS guides

Web APIs Web APIs: Programming interfaces

Web API reference

Web API guides

All All web technology

Technologies

Topics

Learn Learn web development

Frontend developer course

Learn HTML

Learn CSS

Learn JavaScript

Tools Discover our tools

About Get to know MDN better

Blog

  1. Glossary
  2. Submit button

Submit button

A submit button is an element in HTML that can be used to submit a <form>. The native submit button elements are:

  • <button> (its default type is "submit")
  • <input type="submit">[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/submit)
  • <input type="image">[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/image)

In addition to submitting a form, a submit button can affect the form's behavior and what data is sent.

In this article

Overriding the form's behavior

Submit buttons can override the form's submission behavior through various attributes:

  • formaction[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#formaction): Override the action attribute of the form.
  • formenctype[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#formenctype): Override the enctype attribute of the form.
  • formmethod[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#formmethod): Override the method attribute of the form.
  • formnovalidate[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#formnovalidate): Override the novalidate attribute of the form.
  • formtarget[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#formtarget): Override the target attribute of the form.

Form data entries

If the submit button is a <button> or <input type="submit">[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/submit) and has a name attribute, the form data set will include an entry for its name and value. If the submit button is an <input type="image">[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/image), the form data set will include entries for the X and Y coordinates that the user clicked on (e.g., x=100&y=200 or buttonName.x=123&buttonName.y=234).

See also