maxlength attribute(property) is used to restrict the number of character in textbox.
Example:
<input type="text" maxlength="10"/>
Now in this textbox maximum 10 can write.