New input type brings built-in input validation.

Email input type

Email input type doesn’t check whether an email address actually exists; but check its validation of email format. Try to input an invalid email address in the example below, and submit to see what will happen.

Source Code Box: Email input type (Browser: IE9+,Firefox,Chrome)

Color input type

With color input type, a color picker will show up.

Source Code Box: Color input type (Browser:Firefox28+,Chrome29+,Opera17+,Android4.4+)

Number input type

It’s not necessary to specify a min, max and step value. If you don’t specify min, max, and step, the allowed value are all the negative and positive integers.

Source Code Box: Number input type(Browser:IE10+,Firefox28+,Chrome29+,Safari5.7+,Opera17+)

Range input type

You can select a value between the min and max with a slider.

Source Code Box: Range input type (Browser:IE10+,Firefox24+,Chrome29+,Safari6+,Opera17+,iOS5+,Android4.2+)

Date input type

You can input date with a format like YYYY-MM-DD.

Source Code Box: Date input type (Browser:Chrome29+,iOS5+,Android4.4+)

Time input type

You can input time with a format like 15:30.

Source Code Box: Time input type (Browser:Chrome29+,iOS5+,Android4.4+)

Datetime input type

You can input date and time with a format like: 2008-12-29T10:19:17-08:00.

Source Code Box: Datetime input type (Chrome, Opera, Safari)

Week input type

User can input a year and a week number(For example, 01 for the first week, 18 for the eighteen week) in the year.

Source Code Box:Week input type (Chrome, Opera, Safari)

Month input type

User can input a year and a month(01,02….or 12).

Source Code Box: Month input type (Chrome, Opera, Safari)