Name
<input type=password> — NN 2, 3, 4, 6 MSIE 2,3, 4, 5.5, 6 HTML 4.01 WebTV Opera5
Synopsis
<input type=password> no end tag)
Creates a text-input element (like <input type=text>), but the input text is rendered in a way
that hides the characters, such as by displaying a string of
asterisks (*) or bullets (•). Note that this does not
encrypt the information entered and should not be
considered to be a real security measure.
Attributes
-
maxlength=number Specifies the maximum number of characters the user can input for this element. The default is an unlimited number of characters.
-
name=text Required. Specifies the name of this control to be passed to the form-processing application for this element.
-
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 Required. Specifies 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