Input Type: Month

This input type allows the user to select a month and year.

<input type="month">

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">
  Birthday (month and year):
  <input type="month" name="bdaymonth">
  <input type="submit">
</form>
Birthday (month and year):

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

Back button Table of Contents Next button