HTML Infos : command

Description

The command element defines a command button, like a radiobutton, a checkbox, or a button.

Doctypes

Attributes

NameValueDescription
Attribute's nameAttribute's valueAttribute's description
checkedtrue | falseDefines if the command is checked or not. Use only if type is radio or checkbox
defaulttrue | falseIf true, the command is invoked. Use only if the command is inside a context menu
disabledtrue | falseDefines if the command is available or not
hiddentrue | falseDefines if the command is visible or not
iconurlDefines the url of an image to display as the command
labelstring valueDefines a name for the command. The label is visible
radiogroupstring valueDefines the name of the radiogroup this command belongs to. Use only if type is radio
typecheckbox | command | radioDefines the type of command. Default value is command

Examples

<menu>
    <command label="test"/>
</menu>
English | Fran├žais