Autocomplete Tokens

HTML autocomplete="current-password"

Build a form with the HTML form generator

Signals an established account password; use for sign-in or reauthentication, not the replacement password. 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="current-password"

Parameters & Attributes

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

Working Example

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