From the course: Building Great Forms with HTML and CSS
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Form validate options
From the course: Building Great Forms with HTML and CSS
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Fieldsets and legends5m 15s
-
(Locked)
Working with labels5m 35s
-
(Locked)
New HTML5 form tags5m 58s
-
New input types6m 23s
-
(Locked)
New input attributes3m 54s
-
(Locked)
More input attributes6m 52s
-
(Locked)
Form validate options4m 56s
-
(Locked)
Input restrictions: Pattern11m 24s
-
(Locked)
Buttons7m 15s
-
(Locked)
Autocomplete3m 30s
-
-
-
-
-
-
-
-
-