HTML/CSS/Form Attributes/maxlength
"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>
<HTML>
<BODY>
<form>
<input type="password" name="text1" maxlength="10">
</form>
</BODY>
</HTML>