coderef

<input type="month">Limited availability

The &#x3C;input type="month"> HTML element shows a month picker.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–19Not supported
20+Supportedsince Jun 26, 2012
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–18Not supported
25+Supportedsince Feb 27, 2013
Current: 155
Firefox Android
4–17Not supported
18+Supportedsince Jan 8, 2013
Current: 157
Safari iOS
1–11Not supported
≤11.3+Supportedsince Mar 29, 2018
Current: 27

How to use

Not supported in Firefox, Safari. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: month.

Feature detection

JS · check before using
if ("type_month" in document.createElement("input")) {
  // the type_month attribute/property of <input> is supported
}