HTML 5: The Markup Language

input type=passwordpassword-input field # T

The input element with a type attribute whose value is "password" represents a one-line plain-text edit control for entering a password.

Content model #

Attribute model #

Element-specific attributes #

type = "password"
Specifies that its input element is a one-line plain-text edit control for entering a password.
value = string
Specifies a value for this input element.

Assertions #

Tag omission #

The input element is a void element. An input element must have a start tag but must not have an end tag.

Permitted contexts #