Instead of as this lets the browser (and the user) know that the contents of that field need to be secured.The password won't appear on the screen as you type and most browsers also won't 'remember' the values entered in fields as they do with other form elements.For security a password should never be displayed in HTML or sent by email.
The code presented below would then be used for letting the user change their password.
A lot of websites now require registration, meaning that users need to be assigned a username and password.
Here are some simple steps to make the process more secure.
Some common restrictions are: Leaving the last requirement for now, as it requires a server-side script, let's see what's possible using just client-side HTML and Java Script.
Because the input type obscures the text typed, you should let the user confirm that they haven't made a mistake.The simplest way to do this is to have the password entered twice, and then check that they are identical.