Chapter 26. Working with Web-Based Forms

What You’ll Learn in This Chapter:

How HTML forms work

How to create the front end of an HTML form

How to name pieces of form data

How to include hidden data in forms

How to choose the correct form input controls for the situation

How to validate form data

How to submit form data

Using the form object with JavaScript

To this point, pretty much everything in this book has focused on getting information out to others. But you can also use your web pages to gather information from the people who read and interact with them.

Web forms enable you to receive feedback, orders, or other information from the users who visit your web pages. If you’ve ever used a search engine such as Google, Yahoo!, ...

Get HTML, CSS and JavaScript All in One, Sams Teach Yourself: Covering HTML5, CSS3, and jQuery, 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.