HTML5: Specify that the form should not be validated when submitted?
Solution :
HTML Code:
Explanation:
- This HTML code demonstrates a form with the novalidate attribute.
- The novalidate attribute is a boolean attribute that, when present, disables browser validation of the form.
- In this case, novalidate is set on the form element to disable validation.
- The form's action attribute specifies the URL to which the form data will be submitted upon submission, and the method attribute specifies the HTTP method used, in this case, GET.
- Inside the form element, there is an input field for entering an email address. The required attribute is also added to this input field to specify that it is a required field.
- There is a submit button for submitting the form.
Live Demo:
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | Yes |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.