Password fields

Password fields

A password field is a special text field that doesn’t display what the user types. Each keystroke is represented on the screen by a placeholder character, such as an asterisk or a bullet, so that someone looking over the user’s shoulder can’t see what they type. You create a password field by using the <input> element with the type attribute set to password, as follows

:https://stackblitz.com/edit/web-platform-dswbei?embed=1&file=index.html&hideDevTools=1&hideExplorer=1&hideNavigation=1

Password fields are programmed like text fields. You can see how a browser replaces what you type with bullets.

Note: Depending on the browser’s default settings, some browsers replace the text with asterisks or some other character.