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 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
- Using the Web animation API
- Using the Fetch API
- Working with the History API
- Using the Web speech API
- Using web workers
Technologies
Topics
Learn Learn web development
Frontend developer course
- Getting started modules
- Core modules
- MDN Curriculum
- Check out the video course from Scrimba, our partner
Learn HTML
Learn CSS
Learn JavaScript
Tools Discover our tools
About Get to know MDN better
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 defaulttypeis"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 theactionattribute of the form.formenctype[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#formenctype): Override theenctypeattribute of the form.formmethod[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#formmethod): Override themethodattribute of the form.formnovalidate[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#formnovalidate): Override thenovalidateattribute of the form.formtarget[](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#formtarget): Override thetargetattribute 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).