Maxlength Attribute

Example limiting the number of characters.

Preview

Code

<input type="text" maxlength="10" placeholder="Max 10 characters">

More HTML Input Attributes Examples (4)