Another method is to display what they've entered as part of a 'confirmation page'.
The problem here is that you're making the password visible in the browser, browser cache, proxy, etc.
For security a password should never be displayed in HTML or sent by email.
If you're concerned about security you should have some policy on what constitutes a valid password.
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.
If the purpose of registration is to confirm that the person exists, and that they have supplied a valid email address, then as part of the registration processe you a should either email them a random password or a confirmation token rather than letting them choose their own password and use it immediately.
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.
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.