coderef

<input type="week">Limited availability

The &#x3C;input type="week"> HTML element shows a week 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–18.1Not supported
18.2+Supportedsince Dec 11, 2024
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: week.

Feature detection

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