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. The information is not encrypted when sent to the server.

Figure 17.18. The name attribute identifies the password when you compile the data.

To create password boxes:

1.
If desired, type the label that will identify the password box to your visitor (for example, Enter password:).
2.
Type <input type="password".
3.
Type name="label", where label is the text that will identify the input data to the server (and your script).
4.
If desired, define the size of the box on your form by typing ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.