Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 636 Bytes

passwords-forms.md

File metadata and controls

37 lines (29 loc) · 636 Bytes

Forms with passwords

Log in

Use autocomplete="current-password"

<form>
  <label for="user-password">Password:</label>
  <input
    type="password"
    id="user-password"
    autocomplete="current-password"
    required
  >
</form>

Sign-up or change the password

Use autocomplete="new-password"

<form>
  <label for="user-password">New password:</label>
  <input
    type="password"
    id="user-password"
    autocomplete="new-password"
    required
  >
</form>