Summary

In this chapter, we learned about form validation and their types. We also learned the benefits of the different types of validations. We have also seen the various <input> types and attributes used in the validation of forms.

We have seen the difference between JavaScript validation and HTML5 validation by building a sample code.

Next, we learned about constraint validations and the various APIs supported by HTML5.

Lastly, we saw the various browser-specific default error messages and learned how to change the browser's default error message.

Get Mastering HTML5 Forms now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.