🖼️Password Field
Also known as Password Input, Password Box
A box that hides what you type behind dots. An eye button shows it.
Think of it like
It is like whispering a secret. Others see that you spoke, not what you said.
Example
Leo types his new password, presses the eye to check it, and spots a typo before he saves.
Why it matters
Hidden typing causes mistakes. A show button and paste support stop most of them.
Definition
Example code
html
<input type="password" autocomplete="new-password">Try it
At least 8 characters.
Hidden by default, so the person behind you reads nothing.
Type a password, then press the eye. Paste works too, because a password app needs it.
Common mistake
Key takeaways
- 1Hidden by default. Dots, not letters.
- 2Show button. Let people check.
- 3Allow paste. Password managers need it.