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 - 127: Supported
- ✅ 128: Supported
- ✅ 129 - 131: Supported
Edge
- ✅ 12 - 18: Supported
- ✅ 79 - 127: Supported
- ✅ 128: Supported
Safari
- ﹖ 3.1: Support unknown
- ◐ 3.2 - 4: Partial support
- ﹖ 5: Support unknown
- ✅ 5.1 - 17.5: Supported
- ✅ 17.6: Supported
- ✅ 18.0 - TP: Supported
Firefox
- ◐ 2 - 3.6: Partial support
- ✅ 4 - 50: Supported
- ✅ 51 - 129: Supported
- ✅ 130: Supported
- ✅ 131 - 133: Supported
Opera
- ﹖ 9: Support unknown
- ◐ 9.5 - 12.1: Partial support
- ✅ 15 - 110: Supported
- ✅ 111: Supported
IE
- ﹖ 5.5: Support unknown
- ◐ 6 - 9: Partial support
- ✅ 10: Supported
- ✅ 11: Supported
Chrome for Android
- ✅ 128: Supported
Safari on iOS
- ﹖ 3.2: Support unknown
- ✅ 4 - 7.1: Supported
- ◐ 8 - 8.4: Partial support
- ✅ 9 - 17.5: Supported
- ✅ 17.6: Supported
- ✅ 18.0: Supported
Samsung Internet
- ✅ 4 - 24: Supported
- ✅ 25: 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
- ✅ 128: Supported
Firefox for Android
- ✅ 127: Supported
QQ Browser
- ✅ 14.9: Supported
Baidu Browser
- ✅ 13.52: Supported
KaiOS Browser
- ✅ 2.5: Supported
- ✅ 3: Supported
- Resources:
- MDN Web Docs - attribute maxlength