To define password field
- This is used to get the password from users.
- It is defined using input element and type of the text to be mentioned as password.
- It is same as that of textbox but it provides security by masking the characters in this field.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<title>password</title>
<body>
Username:
<input type="text">
<br> Password :
<input type="password">
</body>
</html>

No comments:
Post a Comment