Yet, despite being available in the latest version of all major browsers, constraint validation is a topic largely relegated to presentations and demos.My goal in writing this is to shed some light on the new APIs to help developers make better web forms for everyone.
There are several types of things we can do, which might be referred to as “validation”.
Their have common purpose — to prevent wrong user input as soon as possible.
And we will see what it takes to implement it in our “Add user form” example.
Before HTML5 there was no means of implementing validation natively; therefore, developers have resorted to a variety of Java Script based solutions.
To help ease the burden on developers, HTML5 introduced a concept known as constraint validation - a native means of implementing client side validation on web forms.