3. Introduction to HTML5: Part 2

Form ever follows function.

—Louis Sullivan

I listen and give input only if somebody asks.

—Barbara Bush


In this chapter you’ll:

• Build a form using the new HTML5 input types.

• Specify an input element in a form as the one that should receive the focus by default.

• Use self-validating input elements.

• Specify temporary placeholder text in various input elements

• Use autocomplete input elements that help users reenter text that they’ve previously entered in a form.

• Use a datalist to specify a list of values that can be entered in an input element and to autocomplete entries as the user types.

• Use HTML5’s new page-structure elements to delineate parts of a page, including headers, sections, figures, ...

Get Internet & World Wide Web: How to Program, Fifth 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.