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

<button type="submit">Submit</button>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.