Password Input

In most cases, when entering a password, you don't see the text you typed, but instead you see dots. This is to prevent someone next to you from seeing it.

This behavior is achieved by using the input element with the attribute type="password".

<label for="password">Password</label>
<input type="password" name="password" id="password"/>

We use this input where we expect the entry of sensitive information.

Instructions

Create an input element with the attribute type set to password. Add the name and id attributes with the value password-input. Before this element, create a label element with the content Password and the for attribute set to password-input.

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

5/9