The formnovalidate attribute in HTML is useful when you have a form with more than one submit button.
The formnovalidate attribute overrides another attribute of the <form> attribute, which is known as novalidate attribute. The novalidate attribute is also a Boolean attribute, but using it won’t validate the form of submission.
Note − The formnovalidate attribute is not supported in Internet Explorer and Safari.
You can try to run the following code to learn how to use the formnovalidate attribute in HTML. If you will select the submit button with no validation, then the form won’t get validate −
<!DOCTYPE html> <html> <head> <title>HTML formnovalidate attribute</title> </head> <body> <form action = "new.php" method = "get"> Rank <input type = "number" name = "rank"><br> <input type = "submit" value = "Submit"><br> <input type = "submit" formnovalidate = "formnovalidate" value = "Submit with no validation"> </form> </body> </html>