Chapter 2

Building and Processing Web Forms

IN THIS CHAPTER

Bullet Understanding web form basics

Bullet Coding text boxes, check boxes, and radio buttons

Bullet Programming lists, labels, and buttons

Bullet Monitoring and triggering form events

Bullet Submitting the form data

From humble beginnings, forms in HTML5 are now tremendously flexible and powerful, providing natively much of the functionality that we as developers have been adding in with JavaScript over the years.

— PETER GASSTON

A dynamic web page is one that interacts with the user and responds in some way to that interaction. However, when I use the word interaction here, I don’t mean (or I don’t just mean) users scrolling through your content and clicking a link here and there. A dynamic web page solicits feedback from the user and then responds to that feedback in an appropriate way (whatever appropriate might mean in that context). Sure, you can pester your page visitors for info by tossing them a confirm or prompt box or two, but these are mere toys ...

Get Web Coding & Development All-in-One For Dummies, 2nd Edition 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.