HTML and CSS Reference
Figure 2.7. The Opera date-picker widget is used for all date/time input types, including month , as shown in this
screenshot. When the date picker is used to select a month, clicking any day in the month will select that month.
Later in the chapter you'll learn how to provide a fallback for the month input type, which
gives users something a little more intuitive than a plain text box to enter a month value.
The pattern attribute
The pattern attribute allows you to specify a regular expression pattern to test against
data input in a field. In the order form, we'll use the pattern attribute on both the
card_number and card_cvv2 fields to ensure they're numeric and of appropriate length.