html input Password length must be in the range 8 to 12 characters code example
Example 1: minmax length password
<label for="password">Password:</label>
<input id="password" type="password" pattern=".{5,10}" required title="5 to 10 characters">
Example 2: what is min attribute in password
<input type="password" name="password" min="5">
<input type="text" name="username" min="5">
<!-- The minlength attribute specifies the minimum number
of characters required in an input field.-->