Chapter 2. Form creation: input widgets, data binding, and data validation

Chapter 2 at a glance

Topic

Description, methods, and so on

Page

New input types[1] HTML5 <input> element types  
 
  • email
42
 
  • tel
42
 
  • number
46
 
  • month
49
New input attributes[1] HTML5 attributes on <input> elements  
 
  • required
42
 
  • pattern
49
 
  • autofocus
43
 
  • placeholder
42
 
  • min and max
46
data-* attributes Storing key/value data in attributes on elements 46
valueAsNumber property Reading input values in numeric format 54
<output> element Displaying the output of calculations 47
Preventing validation Providing means of bypassing client-side validation  
 
  • formnovalidate ...

Get HTML5 in Action 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.