Password fields are similar to text fields, except the contents of the field are not visible on the screen. It displays * * * * (asterisks) instead or the actual input.
These fields are mainly used for confidential contents, To establish a password field just set type = "password" in the <INPUT> tag
Syntax
<INPUT type = "password" name = "password-id" Value = "default-text" size = "n" Maxlength = "m" readonly >
All the attributes have same meaning as in the text field except that type is "password". The code for password field is as shown below:
<HTML>
<HEAD><TITLE> TEXT FIELDS</TITLE></HEAD>
<BODY BGCOLOR="PINK">
<P ALIGN ="CENTER"><B>ADMISSION FORM</B>
<FORM>
<P>
<INPUT TYPE ="TEXT" NAME="NAME" VALUE="ENTER YOUR NAME:" SIZE="25"
MAXLENGTH="30"> NAME<BR><BR>
<INPUT TYPE ="PASSWORD" NAME="PASSWD" SIZE="25" MAXLENGTH="30"><BR><BR>
<INPUT TYPE ="TEXT" NAME="ADDRESS" SIZE="25" MAXLENGTH="30">
ADDRESS<BR><BR>
</FORM>
</BODY>
</HTML>
Dinesh Thakur is a Columinist and designer with strong passion and founder
of Computer Notes. if you have any ideas or any request please get @me on Google+
![]()