Name
<input type=password> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • Opera3
Synopsis
<input type=password>
Within a <form>, 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 (•). Note this does
not encrypt the information and should not be considered as a real
security measure.
Attributes
maxlength=numberSpecifies the maximum number of characters the user can input for this element.
name=textSpecifies the name of this parameter to be passed to the form-processing application for this element (required).
size=numberSpecifies 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=textSpecifies the value that will initially be displayed in the text box.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access