Password Field in HTML

Password field is same as input field other field, only difference is, it takes character in dot format which can not read by other adjcent user.

It is having same properties as other input text field having.

To make password field we have to change type of field to password instead of text

Properties of password field

1. size length of field size to print

2. maxlength strict field characters

3. name name of property field

4. value predefined value for password field

5. align predefined value at right or center or left

6. tabindex tab index using for tab order to move cursor

7. onblur fire on if focus out of password field

8. onchange

9. onclick

10. ondblclick

11. onfocus

12. onkeydown

13. onkeypress

14. onmousedown

15. onmousemove

16. onmouseout

Demo

Password :

<input type="password" name="sPassword" />

Example of Password Field in HTML

<html>
<head>
<title>Password Field in HTML</title>
</head>

<body>
<form name="frm">
Password Field <input type="password" name="sPassword" />
<input type="submit" name="GoPassword" value="Submit"/>
</form>
</body>
</html>
Bookmark  

 

Leave a Reply

Security Code:

 

  Random Post