14. Forms
Forms make a big leap in HTML5 as part of its focus on making Web applications richer and their development easier.
Among the most compelling additions are the input
types for color and date pickers, numbers, a range slider, search, email and telephone number fields, and more. Plus, there are attributes for marking fields as required, or specifying a regular expression that performs pattern matching without JavaScript. Please see the “HTML5 and the input
Element” box in Chapter 7’s input
entry for more information.
HTML5 also includes new form-related elements, which this chapter covers.
(Note: Please also see the meter
and progress
elements in Chapter 12 since you may find them valuable to use with a form.)
datalist
Get The HTML Pocket Guide 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.