Monday, July 29, 2019

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"> 
 <title>password</title> 
</head> 
<body> 

 Username: 
 <input type="text"> 
 <br> Password : 
 <input type="password"> 
</body> 
</html>

No comments: