Language

Input Type Password


Input type="password" puts the value of the input element in a normal single line obscured. So that no one other than the user can see the value of this input element.


The value of this input can be changed by the user but no line breaks can be provided.

Input type password is explained in detail

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form>
        <label for="userPassword">Password</label>
        <input type="password" id="userPassword">
        <input type="submit" value="Submit">
    </form>
</body>
</html>