HTML Password Fields (HTML Forms tutorials part 3)

১১/১৮/২০১১ ০৯:১৬:০০ AM | | 0 comments »

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.