From the course: Building Great Forms with HTML and CSS

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Password visibility

Password visibility

- [Instructor] What we're going to be doing in this next section of the course, is that we're going to add on to our login form. So we have our basic login form. But now we're making it more user friendly, by allowing the user to be able to see what they type in the password field. So they'll be able to toggle this information to be visible or not. This is great because it saves space and it gives our user control, they'll be able to decide if they want to view what they're typing, or if they want to have it hidden and obscured with the bullets. Let's take a look at how we can create this. Here's the file as we left off in the last exercise. So what we're going to do is we're going to build on to this. It's really best practice when filling in the password of a form to give users the options to show or hide the password that they have entered. This eliminates the need for a redundant enter password again field,…

Contents