HTML and CSS Reference
In-Depth Information
<command> (Command)
This HTML5 element represents a command a user can invoke and is found within a menu
element. Commands may be simple actions or toggles among various states or options.
HTML5 Standard Syntax
<command
accesskey="spaced list of accelerator key(s)"
class="class name(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
default="default"
dir="ltr | rtl"
disabled="disabled"
draggable="true | false | auto"
hidden="hidden"
icon="URL for image to use with command"
id="unique alphanumeric identifier"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemscope="itemscope"
itemtype="microdata type in URL format"
label="descriptive string for command"
lang="language code"
radiogroup="radiogroup name"
spellcheck="true | false"
style="style information"
tabindex="number"
title="advisory text describing command"
type="checkbox | command | radio">
HTML5 Event Attributes
onabort, onblur, oncanplay, oncanplaythrough, onchange, onclick,
oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave,
ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended,
onerror, onfocus, onformchange, onforminput, oninput, oninvalid, onkeydown,
onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart,
onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel,
onpause, onplay, onplaying, onprogress, onratechange, onreadystatechange,
onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit,
onsuspend, ontimeupdate, onvolumechange, onwaiting
Example
<menu>
<command label="Add" type="Command" icon="plus.png">
<command label="Edit" type="Command" default>
<command label="Delete" type="Command" disabled>
<hr>
<command label="Sort Ascending" type="radio" radiogroup="sort">
<command label="Sort Descending" type="radio" radiogroup="sort">
</menu>
Search WWH ::




Custom Search