HTML 5: The Markup Language (ARIA Edition)

input type=monthyear-and-month input control # T

The input element with a type attribute whose value is "month" represents a control for setting the element’s value to a string representing a month.

Content model #

Attribute model #

Element-specific attributes #

type = "month"
Specifies that its input element is a control for setting the element’s value to a string representing a month.
min = month
The expected lower bound for the element’s value.
max = month
The expected upper bound for the element’s value.
value = month
A string representing a month.

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 #