A password field works the same as a text field, but
characters entered are shown on the screen as asterisks
(“*”) so that onlookers
cannot tell what is being typed:
<input type="password" name="fieldName" value="defaultText" size="width" maxlength="capacity">
where the values of the name,
value, and
maxlength attributes are the same as
those of the text field
above.