HTML Form Password Control

The textbox show the user input in plain text, so there is high risk that other people around you can see the confidential information on screen. The password control can be used to keep safe the confidential data such as password, credit card number, PIN and etc from other people.

Below HTML code line add the password control in HTML form.

<input type=”PASSWORD” name=”userpass” maxlength=”10”>

Let look at the HTML code for form with password control

   1:  <html>
   2:  <head>
   3:  <title>
   4:  The form textbox control 
   5:  </title>
   6:  </head>
   7:  <body>
   8:  <form name="form1">
   9:  Enter UserName
  10:  <input type="text" size"15" maxlength="9"><br><br>
  11:  Enter Password 
  12:  <input type="PASSWORD" size="15" maxlength="9">
  13:  </form>
  14:  </body>
  15:  </html>


The attributes size,maxlength,name and value are also used to enhance the features of password control.

Tags: , , ,

Author: Revo

Share This Post On

Submit a Comment

Your email address will not be published. Required fields are marked *

nineteen − seven =


Pin It on Pinterest

Share This