About Me

Thursday, 19 April 2012

HTML - Password Fields

HTML - Password Fields

Password fields are a special type of <input /> tag. All that we need to do is change the type attribute from text to password.

HTML Code:

<input type="password" size="5" maxlength="5" />
<input type="password" size="15" maxlength="15" />
<input type="password" size="25" maxlength="25" />

Password Fields:



The only difference between these fields and the normal text fields is that when you type into them, the browser hides the characters being typed; replacing them with dots, stars, or boxes.
Also, beaware that these fields are not encrypted and therefore are unsafe. Encryption occurs through the use of a scripting language.

0 comments:

Post a Comment