Horje

How to add HTML <input type="password">

Define a password field (characters are masked).

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.

Tip: Always add the <label> tag for best accessibility practices!


Browser Support

Syntax

<input type="password">

index.html
Example: HTML
<label for="pwd">Password:</label>
<input type="password" id="pwd" name="pwd"> 

Output should be:

How to add HTML <input type="password">




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin