HTML <button> Tag with the 'formnovalidate' Attribute
<form>
<!-- ...form contents... -->
<button type="submit" formaction="/resources/html-forms-action.cfm" formnovalidate>
Submit
</button>
</form>
In the above example we add the formnovalidate attribute to a button control.
About the formnovalidate Attribute
The formnovalidate attribute allows you to specify that the form is not to be validated during submission.
This is a boolean attribute. Therefore, if the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace (i.e. either novalidate or novalidate="novalidate").
Possible values:
- [Empty string]
- novalidate
The W3C says:
The no-validate state of an element is true if the element is a submit button and the element'sformnovalidateattribute is present, or if the element's form owner'snovalidateattribute is present, and false otherwise.
About the <button> Element
The <button> element creates a button control in an HTML document.
Any contents of the <button> element appears on the button.
The <button> element can be associated with a form or stand alone by itself (in such case it could have JavaScript attached via the onclick attribute) to make the button actually do something.