HTML: The Markup Language

input type=datetimeglobal date-and-time input control NEW # T

The input element with a type attribute whose value is "datetime" represents a control for setting the element’s value to a string representing a global date and time (with timezone information).

Permitted content #

empty (void element)

Permitted attributes #

Descriptions for attributes specific to this element #

type = "datetime"
Specifies that its input element is a control for setting the element’s value to a string representing a global date and time.
min = date-time NEW
The expected lower bound for the element’s value.
max = date-time NEW
The expected upper bound for the element’s value.
value = date-time
A string representing a global date and time.

Additional constraints and admonitions #

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 parent elements #

any element that can contain phrasing elements