HTML <input type="password">
Example
Define a password field (characters are masked):
<input type="password" name="pwd">
Try it Yourself »
Definition and Usage
The <input type="password"> defines a password field (characters are masked).
Note: Any forms involving sensitive information like passwords should be served over HTTPS.
Browser Support
Attribute | |||||
---|---|---|---|---|---|
type="password" | Yes | Yes | Yes | Yes | Yes |
Syntax
<input type="password">