Saturday, January 4, 2014

Forms >> Html Password Field - (PART_35)

Topic:
I want a field where password will be given, so i want the field values to be hidden?
How to create a password form field in html?

Explanation:

Password Field

Example Code:
<form name=testform>
<input type=password>
</form>
 

Result:

Definition: The password field for a form is create by "input of type password".
The result shows a password field displayed.


Disable Password Field

Code:
<form name=testform>
<input
 type=password disabled>
</form>
 

Result:

Definition: The make the password field disabled (not-usable) just add an additional variable "disabled" in the input tag.