Kevin Kevin - 1 month ago 6
HTML Question

Encrypting a textfield in HTML

I have a text field in my HTML project that I want to encrypt as a password.

So basicaslly instead of this being displayed in the text field:

mypassword


I want it to say:

*********


or something close to that.
So basically just making the text that the user inputs not to be visible.

How do I do this?

Answer

Use <input type="password" />