From the course: Building Great Forms with HTML and CSS

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Form validate options

Form validate options

From the course: Building Great Forms with HTML and CSS

Start my 1-month free trial

Form validate options

- [Instructor] The novalidate and formnovalidate attributes indicate that the forms shouldn't be validated when submitted. These are both boolean attributes that you can add to the form element itself or other input elements. Let's look at the novalidate boolean first. Novalidate and formnovalidate attributes indicate that the form shouldn't be validated when submitted. These are both boolean attributes that you can add either to the form element itself or other input elements. Let's look at the novalidate attribute first. This particular attribute can only be set on the form element as I'm using it here. Novalidate is used in cases where you don't want to validate the form, but you do want to take advantage of the more useful user interface enhancements that the new input type offers. In the example that I have here I have two input fields, both are required. Normally when we click the submit button we would get some…

Contents