Form
Username input
Published on
Description
The username input is a Text input with autocomplete="username". Use it for the account identifier in sign in and sign up forms, so password managers pair it with the password field.
If people sign in with an email address, use the Email input with autocomplete="username" instead.
Example
Accessibility
- Use explicit
<label for="id">association with clear label text. autocomplete="username"identifies the input purpose and lets password managers fill it.
References
Related
- Password — the field that follows it when signing in
- Password (create) — the field that follows it when signing up
Variables
- None for input