FormsLesson 147Free preview
Turn off autocomplete
This lesson is part of How To · All levels
Summary
This lesson describes the autocomplete attributes of form and input elements. The off value asks the browser not to display the previously typed fill suggestions, whereas a value such as a new-password gives specific instructions for the new password column. It should be understood that browsers and password managers may ignore these requests for the convenience of the user.
Key points
- The autocomplete attribute can be attached to <form> or to individual inputs
- Autocomplete="off" is a request, not a guarantee, and can be ignored by the browser
- Use autocomplete="new-password" in the new password creation column
- Turn off autocomplete on sensitive or unique data, but don't rely on it as a security control.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.