What the person is doing
The user is signing in, reauthenticating before a sensitive action, confirming a current password before a change, entering a PIN-like memorized secret, or unlocking an account recovery step.
Application · lesson 19 of 34 · Input And Data Entry
Underlying principle: An input pattern carries a question, an expected answer, and a consequence. Visible labels, suitable controls, tolerant entry, and specific recovery keep that agreement clear.
Use password input when a user enters an existing secret to sign in, reauthenticate, unlock a protected action, or confirm account ownership.
An input pattern carries a question, an expected answer, and a consequence. Visible labels, suitable controls, tolerant entry, and specific recovery keep that agreement clear.
The user is signing in, reauthenticating before a sensitive action, confirming a current password before a change, entering a PIN-like memorized secret, or unlocking an account recovery step.
Use password input when a user enters an existing secret to sign in, reauthenticate, unlock a protected action, or confirm account ownership.
Initial hidden state with label, autocomplete purpose, spellcheck off, autocapitalization off, and show control.
Is this value truly an authentication secret, or is it ordinary text being hidden?
Typing, paste, selection, deletion, undo, and password-manager autofill work through native input behavior.
The user is signing in, reauthenticating before a sensitive action, confirming a current password before a change, entering a PIN-like memorized secret, or unlocking an account recovery step.
Open the working example, try its controls, and compare the behavior against the decision guidance.
The user is signing in, reauthenticating before a sensitive action, confirming a current password before a change, entering a PIN-like memorized secret, or unlocking an account recovery step.
Use password input when a user enters an existing secret to sign in, reauthenticate, unlock a protected action, or confirm account ownership.
Initial hidden state with label, autocomplete purpose, spellcheck off, autocapitalization off, and show control.
A visible text field exposes the password to nearby people or screen recordings.
Use a visible label that names the password purpose, such as Password or Current password.
GOV.UK Design System - checked
GOV.UK supports password type, show and hide controls, current-password autocomplete, paste support, failed-login clearing, combined account-detail errors, no confirm field, spellcheck disabled, and autocapitalization disabled.
National Institute of Standards and Technology - checked
NIST supports password-manager and autofill use, paste support, display option, length expectations, no composition rules, protected channels, rate limits, and salted hashing.
MDN Web Docs - checked
MDN supports password input semantics, obscured content, current-password and new-password autocomplete, PIN input mode, required fields, and normal text editing.
MDN Web Docs - checked
MDN supports current-password, new-password, and one-time-code autocomplete distinctions.
OWASP Cheat Sheet Series - checked
OWASP supports standard HTML password forms, paste support, password-manager compatibility, printable characters, reasonable maximum length, and simple Tab navigation.
Source trail checked: