O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Password Boxes

The only difference between a password box and a text box is that whatever is typed in the former is hidden by bullets or asterisks Image. The information is not encrypted when sent to the server.

Image The password attribute identifies the password when you compile the data. The id attribute is used for styling and for reference to the label. The type attribute must be password, but the id and name can have any values as long as they don’t have spaces.

<li>     <label for="password">Password:</label>     <input type="password" id="password" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required