We value your privacy

We and our third party partners may use cookies and similar technologies on this site to analyze usage, optimize our services, personalize content, tailor and measure ads and keep this site secure. Privacy Notice Cookies Notice
en
Cloud Cloud Cloud Cloud

The submit Type

The Current State of HTML5 Forms

Let Wufoo do the hard work. Sign up for a free account and start making forms the easy way.

<input type=submit>
<input type=submit value="Click Me to Submit Form">
view raw submit type hosted with ❤ by GitHub

Live Demo



 

The Low Down

The submit input type is used to create a button that submits the form.

  • If the value attribute is present, the value of that attribute will be the text on the button. If not, the default wording on the submit button is “Submit”.
  • Include the name attribute if you want the value to be submitted with the form: the values of the name and value attributes, if both are present, are submitted with the form.
  • The submit event handler will occur on form submission: but that is on the form, not on the button itself.
  • If you want to prevent constraint validation, include the  formnovalidate attribute.
  • Include the formenctype to override the form’s MIME type.
  • Include the formmethod attribute with get or post to override the form’s method of submission.
  • The formaction attribute allows you to override the form’s actionattribute.
  • The formtarget attribute allows you to set the browsing-context for the form response.
Cloud Cloud Cloud Cloud

Let Wufoo do the hard work.

Sign up for a free account and start making forms the easy way.