O'Reilly logo

HTML: A Beginner’s Tutorial by Chris Coremans

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

Chapter 7

Forms

An HTML form can be used to collect information from the user. A form normally contains one or more fields and a submit button. The role of the latter is obvious. You cannot submit a form without a submit button. A form would also specify an action, which is normally an Internet resource, to handle the form data.

This chapter discusses forms and form fields.

Overview

Prior to HTML5, the fields that could be used in a form were somewhat limited. There were text fields, radio buttons, checkboxes and drop-down lists. This dramatically changed when HTML5 was released. There is now more variety, from date-time fields to email and url fields to a color picker. Better still, HTML5 forms are validated upon submission, which ...

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