HTML5 New Input Types
HTML5 has a number of new form input types. These new features provide better input control and validation.
This chapter introduces a comprehensive new input types:
- color 选取颜色 <input type="color" id="favcolor">
- date 选择日期 <input type="date" name="bday">
- datetime
- datetime-local
- email verifies email is legitimate <input type = "email" name = "email"> time of submission
- month
- define a digital number region <input type = "number" min = "1" max = "5"> defines the input 1 to 5
- range <input type="range" min="1" max="10">
- search
- tel
- time
- url
- week