<label for="password">Password:</label> <input id="password" type="password" pattern=".{5,10}" required title="5 to 10 characters">