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.
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 ...