A form with two submit buttons. The first submit button submits the form data with default validation, and the second submits the form data without validation:
The formnovalidate attribute is a boolean attribute.
When present, it specifies that the form-data should not be validated on submission. This attribute overrides the form's novalidate attribute.
The formnovalidate attribute is only used for buttons with type="submit".
The numbers in the table specify the first browser version that fully supports the attribute.
Attribute | |||||
---|---|---|---|---|---|
formnovalidate | 6.0 | 10.0 | 4.0 | Not supported | 10.6 |
The formnovalidate attribute is new in HTML5.
In XHTML, attribute minimization is forbidden, and the formnovalidate attribute must be defined as <button type="submit" formnovalidate="formnovalidate">.