HTML 5: The Markup Language (ARIA Edition)

input type=colorcolor # T

The input element with a type attribute whose value is "color" represents a color-well control, for setting the element’s value to a string representing a simple color.

Content model #

Attribute model #

Element-specific attributes #

type = "color"
Specifies that its input element is a color-well control, for setting the element’s value to a string representing a simple color.
value = color
An string representing a simple color.

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 #