My learning 0 of 20 lessons complete
Start lesson 1 →
spec 3 linked patterns checked

MDN input type password

Documents password inputs as text controls whose content is obscured, label requirements, current-password and new-password autocomplete values, required and length attributes, inputmode for PIN-like secrets, and normal text selection behavior.

Read with a purpose

What this source can teach

Use this source to check a technical or accessibility requirement against its exact wording and scope.

  1. Start with the original. Open the source and find the guidance or example relevant to your task.
  2. Trace the connection. Use the claim notes below to see how this site applies the source to specific patterns.
  3. Check the setting. Compare the source's platform, people, and constraints with your own decision.

Pattern Decisions This Source Supports

Pattern Supported decision Required contract Claim note
Login Choose login when the user has submitted credentials or an authenticator and the UI must show the result, next retry, lockout, or session-created state. Submitting credentials enters one clear verifying state and prevents duplicate submissions until the login result returns. MDN supports existing-password input behavior that affects failed-login recovery and secret protection.
Password input Choose password input when the value is a password, passphrase, PIN-like memorized secret, current password, reauthentication secret, or credential confirmation value. Typing, paste, selection, deletion, undo, and password-manager autofill work through native input behavior. MDN supports password input semantics, obscured content, current-password and new-password autocomplete, PIN input mode, required fields, and normal text editing.
Sign in Choose sign in when the user needs to start or restore an authenticated session for an existing account. The sign-in form identifies the protected service or destination before requesting credentials. MDN supports current-password semantics and password input behavior for existing authentication secrets.

Evidence Role

This source is treated as spec evidence. Its value comes from the specific claims and setting described above.

Publisher: MDN Web Docs. Last checked: .

Saved items