<form name="myForm" action="https://www.PuStudy.Com/resources/html-forms-action.html">
<input type="password" name="myPasswordField">
<button>Submit</button>
</form>
The above example demonstrates usage of the <input>
element with the type
attribute set to password
(i.e. type="password"
).
The password
value represents a one line plain text edit control for the element's value (which is sensitive information).
Browsers should obscure the password field so that its value cannot be seen.