<input type="password"/> or
<input type="password" />
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.
This is an empty element. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a trailing slash as just shown. Developers may include a space character before the slash for backward compatibility with older browsers.
on) or requires the user to enter the information every time (
off). Omitting this attribute causes the control to inherit the
autocompletesetting for the associated
titleattribute can be used with
patternto provide a description of the expected pattern/format of the input.
typeis set to
search), measured in number of characters. Users may type entries that are longer than the space provided, causing the field to scroll to the right.
<input type="password" name="password" size="8" maxlength="8" value="abcdefg">