Name

<input type=password> — NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3

Synopsis

                     <input type=password>
                  

Creates a text-input element (like text) but the input text is rendered in a way that hides the characters, such as displaying a string of asterisks (*) or bullets (&bull;). Note this does not encrypt the information and should not be considered as a real security measure.

Attributes

maxlength= number

Specifies the maximum number of characters the user can input for this element.

name= text

Specifies the name of this parameter to be passed to the form-processing application for this element (required).

size= number

Specifies the size of the text-entry box (measured in number of characters) to be displayed for this element. Users can type entries that are longer than the space provided, causing the field to scroll to the right.

value= text

Specifies the value that will initially be displayed in the text box.

Get Web Design in a Nutshell 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.