This input type allows the user to select a month and year.
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> |
Incompatible with Firefox and Internet Explorer but works with Chrome, Safari and Opera (as of September 2015).