HTML 5: The Markup Language

input type=texttext-input field # T

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

Content model #

Attribute model #

Element-specific attributes #

type = "text"
Specifies that its input element is a one-line plain-text edit control for the input element’s value.
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 #