HTML <input> Tag with 'type=password'
<form name="myForm" action="http://www.htmlcodes.ws/resources/html-forms-action.cfm">
<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.