jump

HTML 5: The Markup Language (ARIA Edition)

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

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

Permitted contents #

empty (void element)

Permitted attributes #

global attributes
Any attributes permitted globally.
type = d:string "checkbox" #
Specifies that its command element represents a state or option that can be toggled.
checked = d:string "checked" or d:string "" #
Specifies that the command is selected.
label = string #
The name of the command, as shown to the user.
icon = non-empty URL potentially surrounded by spaces #
A URL for an image that represents the command.
disabled = d:string "disabled" or d:string "" #
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 parent elements #

any element that can contain metadata elements, any element that can contain phrasing elements

DOM interface #

interface HTMLCommandElement : HTMLElement {
           attribute DOMString type;
           attribute DOMString label;
           attribute DOMString icon;
           attribute boolean disabled;
           attribute boolean checked;
           attribute DOMString radiogroup;
  readonly attribute HTMLElement? command;
};