HTML <button> formnovalidateAttribute

HTML button 标签参考手册HTML `<button>` Tag

Examples

A form with two submit buttons (with or without validation). The first submit button submits data with default form validation, the second submit button submits data without form validation:

<form action="demo_form.html" method="get"> E-mail: <input type="email" name="userid"><br> <button type="submit">Submit</button><br> <button type="submit" formnovalidate>Submit without validation</button> </form>

Try it »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, Opera, Chrome support the formmethod attribute.

Note:Safari, Internet Explorer 9 and earlier IE versions do not support the formmethod attribute.


Definition and Usage

The formnovalidate attribute is a boolean attribute.

If this attribute is used, the button will not perform the validation process when the form is submitted. The formnovalidate attribute overrides the form'snovalidateattribute.

This attribute works with type="submit".


Differences between HTML 4.01 and HTML5

The formnovalidate attribute is a new attribute in HTML5.


Differences between HTML and XHTML

In XHTML, attribute minimization is not allowed, and the formnovalidate attribute must be defined as `<button type="submit" formnovalidate="formnovalidate">`.


Syntax

<button type="submit" formnovalidate>


HTML button 标签参考手册HTML `<button>` Tag Other extensions