maxlength attribute for input and textarea elements
- LSDeclares an upper bound on the number of characters the user can input. Normally the UI ignores attempts by the user to type in additional characters beyond this limit.
Chrome
- ✅ 4 - 146: Supported
- ✅ 147: Supported
- ✅ 148 - 150: Supported
Edge
- ✅ 12 - 18: Supported
- ✅ 79 - 145: Supported
- ✅ 146: Supported
Safari
- ﹖ 3.1: Support unknown
- ◐ 3.2 - 4: Partial support
- ﹖ 5: Support unknown
- ✅ 5.1 - 26.3: Supported
- ✅ 26.4: Supported
- ✅ 26.5 - TP: Supported
Firefox
- ◐ 2 - 3.6: Partial support
- ✅ 4 - 50: Supported
- ✅ 51 - 148: Supported
- ✅ 149: Supported
- ✅ 150 - 152: Supported
Opera
- ﹖ 9: Support unknown
- ◐ 9.5 - 12.1: Partial support
- ✅ 15 - 126: Supported
- ✅ 127: Supported
IE
- ﹖ 5.5: Support unknown
- ◐ 6 - 9: Partial support
- ✅ 10: Supported
- ✅ 11: Supported
Chrome for Android
- ✅ 147: Supported
Safari on iOS
- ﹖ 3.2: Support unknown
- ✅ 4 - 7.1: Supported
- ◐ 8 - 8.4: Partial support
- ✅ 9 - 26.3: Supported
- ✅ 26.4: Supported
- ✅ 26.5: Supported
Samsung Internet
- ✅ 4 - 28: Supported
- ✅ 29: Supported
Opera Mini
- ◐ all: Partial support
Opera Mobile
- ◐ 10 - 12.1: Partial support
- ✅ 80: Supported
UC Browser for Android
- ✅ 15.5: Supported
Android Browser
- ﹖ 2.1 - 2.2: Support unknown
- ✅ 2.3 - 4.4.4: Supported
- ✅ 147: Supported
Firefox for Android
- ✅ 149: Supported
QQ Browser
- ✅ 14.9: Supported
Baidu Browser
- ✅ 13.52: Supported
KaiOS Browser
- ✅ 2.5: Supported
- ✅ 3: Supported
- Resources:
- MDN Web Docs - attribute maxlength