Global Attributes
HTML autocapitalize attribute
Hints how a virtual keyboard should capitalize text. It is not validation and has no effect on some input types, such as email and password. Applicability: global HTML attribute, subject to element-specific restrictions and browser support.
Formal Syntax & Structure
html syntaxhtml
autocapitalize="words"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| autocapitalize | enumerated: none, off, sentences, on, words, characters | Hints how a virtual keyboard should capitalize text. It is not validation and has no effect on some input types, such as email and password. |
Working Example
Example Snippethtml
<label> Name <input autocapitalize="words"></label>Browser Compatibility
Minimum supported versions across modern rendering engines
Chrome
43
Yes
Firefox
111
Yes
Safari
Not supported in checked snapshot
No
Checked desktop BCD snapshot: global autocapitalize attribute. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted. Desktop Safari data differs from iOS Safari. Actual capitalization is keyboard-dependent.
HTML Living Standard