September 2024
Beginner to intermediate
985 pages
35h 37m
English
We showed you a simple example of validating forms or values entered in form fields in Chapter 6. But as mentioned in that chapter, validating input fields with HTML5 is a lot easier because it already offers some native validation options.
The term native in the context of programming languages or in the context of HTML means something like built into the language or included in the language scope. So, native validation in HTML5 means that it’s already included in the language and doesn’t need to be implemented by JavaScript.
Listing 7.19 shows an example of a simple registration form that uses appropriate attributes to trigger the native validation: the fields for entering the user name and email ...
Read now
Unlock full access