An <input> element with a maximum length of 10 characters:
![]()
The maxlength attribute is supported in all major browsers.
The maxlength attribute specifies the maximum number of characters allowed in the <input> element.
NONE.
| Value | Description |
|---|---|
| number | The maximum number of characters allowed in the <input> element |
HTML <input> tag
Your message has been sent to W3Schools.