novalidate
novalidate attribute
The novalidate attribute is a Boolean attribute for <form> elements in HTML. When included, it indicates that the form should bypass the browser's default client-side validation, allowing submission without checking for required fields or input format compliance.
Syntax
<form novalidate>
Example
<form novalidate>
<label for="name">Name:</label><br>
<input type="text" id="name" name="name" required>
<br><br>
<label for="email">Email:</label><br>
<input type="email" id="email" name="email" required>
<br><br>
<button type="submit">Submit</button>
</form>
Definition and Usage
The novalidate attribute is a boolean attribute.
When used, it indicates that the form data should not be validated upon submission.
Values
The novalidate attribute is a boolean attribute, meaning it does not require any values.
Applies To
The novalidate attribute can be applied to the following HTML elements:
Conclusion
The novalidate attribute in HTML prevents the browser from performing automatic client-side validation, letting the form be submitted without checking the inputs. It’s helpful when you prefer to handle validation on the server side or wish to avoid browser-imposed rules. This attribute is added to the <form> element.