What is the HTML novalidate attribute?

Overview

The novalidate attribute in HTMLHyperText Markup Language is used to define that the form should not be validated when it is submitted. It is a Boolean attribute.

Note: The novalidate attribute is used with the <form> element.

Syntax


<form novalidate>

Example

The HTML code provided below demonstrates how to use the novalidate attribute:

Explanation

We make a form that takes an email address. When we press the “Submit” button, the form is submitted, but the data is not validated because we’ve used the novalidate attribute.

Free Resources