HTML Password

We use the html password to capture the user input data,and the browser show the results in asterisk(*) instead of the digits.The browser offer a privacy user on screen while we entering the password.We use the <input> for start tag and specify the value of "password" for the type attributes.
Example:

<form name="HTML Form" action="mailto:youremail@email.com" method="post">
Password: <input type="password" title="Enter Your Password" size="8" /><br />
<input type="submit" value="SUBMIT" />
</form>


Your Result:
Here you can check or test it

Password: 

HTML Password Fields Attributes


 Example:
<form name="HTML Form" action="mailto:youremail@email.com" method="post">
First: <input title="Enter Your First Name" id="first" name="first" type="text" size="12" maxlength="12" /> Last: <input title="Please Enter Your Last Name" id="last" name="last" type="text" size="18" maxlength="24" /><br />
Password: <input type="password" title="Please Enter Your Password" size="8" maxlength="8" /><br />
<input type="submit" value="SUBMIT" />
</form>

Your Result:

First:  Last: 
Password: 

No comments:

Post a Comment