How to specify that the form should not be validated when submitted in HTML ?
The <form> tag in HTML is used to create form for user input. There are many elements which are used within form tag. For example: <input>, <textarea>, <button>, <select>, <option>, <optgroup>, <fieldset>, <label>.
The HTML <form> novalidate attribute is used to specify that the form-data should not be validated when submitting the form. It is a Boolean attribute.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
Syntax:
<form novalidate>
Example: This example illustrates the use of novalidate attribute in form element.
HTML
<!DOCTYPE html><html> <head> <title> How to specify that the form should not be validated when submitted in HTML? </title></head> <body style="text-align:center;"> <h1 style="color: green;"> GeeksforGeeks </h1> <h2> How to specify that the form should not be <br>validated when submitted in HTML? </h2> <form action="#" method="get" target="_self" novalidate> Name: <input type="text"> <input type="submit" id="Geeks" name="myGeeks" value="Submit@geeksforgeeks" formTarget="_blank"> </form></body> </html> |
Output:
Supported Browsers:
- Google Chrome 10.0
- Internet Explorer 10.0
- Firefox 4.0
- Opera 10.6


