From the course: Building Great Forms with HTML and CSS

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Dates and date pickers

Dates and date pickers

From the course: Building Great Forms with HTML and CSS

Start my 1-month free trial

Dates and date pickers

- [Instructor] Selecting a date is a common feature that you may find in a registration form, particularly in some sites or applications like flight or hotel bookings. A date input control is a text control where the user can insert a date in a required format. It's helpful for the user to provide some sort of guidance about that required format. A date picker control is used where a data's required as input from a user, for example, a date of birth, a joining date, a range of date for searching required items, et cetera. The date picker in HTML5 basically works very similarly to how the JavaScript libraries did. When we focus on the field, a calendar will pop out and then we can navigate through the months and years to select a date. HTML5, we use the input element with the type of date specified. This makes it easier for the user to select a specific date. What we'll be doing in this particular exercise is we're going to…

Contents