Fandom

HTML & CSS Wiki

Command

649pages on
this wiki
Add New Page
Comments0 Share

The HTML <command></command> element was introduced in HTML5. It defines a command button, like a radiobutton, a checkbox, or a button. This element must be inside a <menu> element. If not, it will not be displayed.


AttributesEdit

  • checked - Defines if the command is checked or not.
  • disabled - Defines if the command is available or not.
  • icon - Defines the URL of an image to display as the command.
  • label - Defines a name for the command. The label is visible.
  • radiogroup - Defines the name of the radiogroup this command belongs to. Use only if type is radio.
  • type - Defines the type of command. Default value is command. Other values are checkbox and radio.


HTML example:

<menu>
<command type="command">Click Me!</command>
</menu>

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.