Dates, Times, Color Picker
Dates and Times
You can have a calendar appear when a user clicks inside of a text box. Unfortunately, only the Opera browser does this. Here's what it looks like:
TYPE="Month"
TYPE="Week"
TYPE="Time"
TYPE="Datetime"
TYPE="Datetime-local"
Colour Picker
Another form element you can add is a Colour Picker. This will be of limited use, and only the Opera browser has implement it. The HTML code is this:
In the next lesson, you'll learn about HTML 5 data lists.
Friday, 10 July 2015
Dates, Times, Color Picker
<INPUT TYPE="date" value="">
The TYPE is "Date", but you can have other TYPES:
TYPE="Date"
All the other browsers will just show you a blank text box in place of the TYPEs above.
<INPUT TYPE="Color">
In the browser, it looks like this:
0 comments:
Post a Comment