Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

A password field

A password text box is the same as an ordinary text box except that the text you type in doesn’t appear on the screen. The characters usually appear as asterisks. You could use a password text box for any type of sensitive information.

To set up a password box, you use the <input> tag and set the type attribute to password. For example:

<form>
Password: 
<input type="password" name="pwd" 
width="30" value="password">
</form>

This looks like:

Like ordinary text fields, you can use the size attribute to specify the width of the box and the maxlength attribute to define the number of characters that a user can enter in the box.

HTML doesn't do anything with a password it only allows you to set up a box to type in. It doesn’t encrypt it or process it in anyway. If you want to do anything with password, you need to link it to a program or script. Can't help you there.

You can also use the name attribute to add an internal name to the field so the program that handles the form can identify the fields.