Skip to content
Related Articles

Related Articles

HTML | <input type=”password”>
  • Last Updated : 29 May, 2019

The HTML <input type=”password”> is used to specify the password field of input tag. Password should be served over the HTTPS pages because it include the sensitive information of the user.

Syntax:

<input type="password">

Example:




<!DOCTYPE html> 
<html
  
<head>
    <title>
        HTML input type password
    </title>
</head>
  
<body style="text-align:center;"
  
    <h1 style="color:green;"
        GeeksForGeeks 
    </h1
  
    <h2>HTML <Input Type = "Password"></h2
      
    <input type="password" id="mypasswd"
            value="geeks12"
</body
  
</html>                    


Output:

Supported Browsers: The browsers supported by <input type=”password”> are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

full-stack-img

My Personal Notes arrow_drop_up
Recommended Articles
Page :