How to create a single-line password input in HTML

The HTML

<label for="password">Password</label>
<input type="password" id="password" maxlength="15">

The result

The characters you type will be replaced with asterisks:

password input box on a webpage

Next: Common HTML Elements 1

Comments

Leave a comment

What color are brown eyes? (spam prevention)
Submit
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.