Creates a control for selecting a week and year value. | HTML 5 |
HTML Syntax
<input type = week
[ min = yyyy-Www
max = yyyy-Www
value = yyyy-Www ]
>
NOTE: Only the <input
> start tag must be present. The element has no end tag.
The <input type=week
> element is used to create a control for selecting or entering a week and year value.
The control renders in supporting browsers as a week-year picker, or as numeric wheels for week number and year.
The appearance of the week-year picker interface varies, based on the browser and operating system.
<input type=week
> may be specified with min and max attributes to restrict the dates that can be chosen by the user.
The control may also be specified with a value attribute, to set a default value for the input.
The resulting value includes the year and week number.
The submitted value is normalized to the format yyyy-Www.
The <input_week>
element supports the following attributes, in addition to global attributes and attributes common to all HTML input elements.
The following example shows how a simple <input type=week
> control renders on a web page.
<input type=date>
INPUT INPUT type=date INPUT type=datetime-local INPUT type=month