Chapter 4. HTML5 Forms

Forms are an essential part of any web application that requires input by the user.

Since first created with HTML 2.0 specifications, forms have allowed us to make web pages interactive. In fact, through form controls, it is possible for the user to interact with and insert various types of information, which can then be sent to the server to be processed.

HTML 4 provided pretty basic form controls, which were usually text fields and most of the interactivity happened on the server side. Validation of a type of data inserted onto a form control is a classic example of operations that were carried out on the server side with HTML 4, unless they used JavaScript or AJAX frameworks.

With HTML5 forms today, it is possible to develop ...

Get HTML5 Solutions: Essential Techniques for HTML5 Developers 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.