HTML 5: The Markup Language

command type=checkboxstate or option that can be toggled # T

The command element with a type attribute whose value is "checkbox" represents a state or option that can be toggled.

Content model #

Attribute model #

Element-specific attributes #

type = "checkbox"
Specifies that its command element represents a state or option that can be toggled.
checked = "checked" | ""
Specifies that the command is selected.
label = string
The name of the command, as shown to the user.
icon = uri
A URL for an image that represents the command.
disabled = "disabled" | ""
Specifies that the command is not currently available.

Tag omission #

The command element is a void element. A command element must have a start tag but must not have an end tag.

Permitted contexts #