'maxlength' sets the maximum number of characters in a text or password control
<HTML> <BODY> <form> <input type="password" name="text1" maxlength="10"> </form> </BODY> </HTML>