Input Type: Week

This input type allows the user to select a week and year:

<input type="week">

Depending on browser support, a date picker can show up in the input field.

HTML file: Displayed by browser:
<form action="http://www.w3schools.com/html/action_page.php">
  Select a week:
  <input type="week" name="year_week">
  <input type="submit">
</form>
Select a week:

Incompatible with Firefox and Internet Explorer but works with Chrome, Safari and Opera (as of September 2015).

Back button Table of Contents Next button