Autocomplete Tokens

HTML autocomplete="new-password"

Build a form with the HTML form generator

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

NameTypeDescription
autocompleteordered token listUse new-password as the attribute value.

Working Example

Example Snippethtml
<label>  New password  <input type="password" name="new-password" autocomplete="new-password"></label>
HTML Reference