The maxlength Attribute

The maxlength attribute specifies the maximum allowed length for the input field:

First name:

Last name: