O'Reilly logo

The Definitive Guide to HTML5 by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  12

Working with Forms

Forms are the HTML mechanism for gathering input from the user. Forms are incredibly important to web applications, but for many years the functionality defined in HTML has lagged behind the way forms are used. In HTML5, the entire form system has been overhauled and spruced up, aligning the standard with the way forms have evolved in use.

In this chapter, I describe the basics of HTML forms. I start by defining a very simple form and build on it to demonstrate how you configure and control the way the form operates. I introduce a Node.js script you can use to test your forms and see the data that is sent from the browser to the server.

In the chapter that follows, I cover the advanced form features, including ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required