Chapter 2. HTML5 forms

 

This chapter covers
  • New input types in HTML5
  • HTML5 form features for improved user experience
  • Automatic client-side form validation

 

Forms are fundamental components of web applications. This chapter starts with a quick review of the limited options offered in HTML4 and then moves on to the new form controls HTML5 adds. We’ll investigate the built-in validation features offered in HTML5 and then look at more new field types that take advantage of that functionality. After that, we’ll examine some other new features in HTML5 forms, such as placeholder text and autofocus, before taking a look at the current state of ...

Get Hello! HTML5 & CSS3: A user-friendly reference 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.