Kevin Kevin - 11 months ago 63
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:


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 Source

Use <input type="password" />