Autocomplete Tokens
HTML autocomplete="new-password"
Signals account creation or password change; a password manager may propose a new value. Do not use for an existing-password prompt. Use this value on a compatible form control. Autofill is a browser/user preference, not an input constraint or proof that the value is accurate. Validate submitted data separately.
Formal Syntax & Structure
html syntaxhtml
autocomplete="new-password"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| autocomplete | ordered token list | Use new-password as the attribute value. |
Working Example
Example Snippethtml
<label> New password <input type="password" name="new-password" autocomplete="new-password"></label>