autocapitalizeLimited availability
The autocapitalize global HTML attribute sets the virtual keyboard capitalization behavior for user input on an element, such as the first letter of sentences or all words.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–65Not supported
66+Supportedsince Apr 17, 2018
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–110Not supported
111+Supportedsince Mar 14, 2023
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
18–65Not supported
66+Supportedsince Apr 17, 2018
Current: 155Firefox Android
4–110Not supported
111+Supportedsince Mar 14, 2023
Current: 157Safari iOS
1–10Not supported
10.3+Supportedsince Mar 27, 2017
Current: 27How to use
Not supported in Safari. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: autocapitalize.
Feature detection
JS · check before using
if ("HTMLElement" in globalThis && "autocapitalize" in HTMLElement.prototype) {
// HTMLElement.autocapitalize is available
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (2). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLElement.autocapitalize | 66 | 79 | 111 | ✕ | 66 | 111 | 10.3 |
| autocapitalize | 43 | 79 | 111 | ✕ | 43 | 111 | 10.3 |