Form
Password (create)
Published on
Description
The password create input is a Password input with autocomplete="new-password". Use it when someone sets or changes a password, so browsers and password managers offer to generate one and save it.
Put a username field before it in the same form so the saved password is stored against the right account.
Example
Accessibility
- Use explicit
<label for="id">association with clear label text. - State the password rules in the hint before the person types, not only in an error afterwards.
- Do not block paste; it breaks password managers.
References
Related
Variables
- None for input