HTML 5 <command> tag
Definition and Usage
The <command> tag defines a command button, like a radiobutton, a
checkbox, or a button.
Differences Between HTML 4.01 and HTML 5
The <command> tag is new in HTML 5
Attributes
| Attribute |
Value |
Description |
| checked |
true | false |
Defines if the command is checked or not. Use only if type
is radio or checkbox |
| default |
true | false |
If true, the command is invoked. Use only if the command is
inside a context menu |
| disabled |
true | false |
Defines if the command is available or not |
| hidden |
true | false |
Defines if the command is visible or not |
| icon |
url |
Defines the url of an image to display as the command |
| label |
command name |
Defines a name for the command. The label is visible |
| radiogroup |
name of radiogroup |
Defines the name of the radiogroup this command belongs to.
Use only if type is radio |
| type |
checkbox
command
radio |
Defines the type of command. Default value is command |
Standard Attributes
| class, contenteditable, contextmenu, dir, draggable, id,
irrelevant, lang, ref, registrationmark, tabindex, template, title |
For a full description, go to Standard
Attributes in HTML 5.
Event Attributes
| onabort, onbeforeunload, onblur, onchange, onclick,
oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave,
ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress,
onkeyup, onload, onmessage, onmousedown, onmousemove,
onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect,
onsubmit, onunload |
For a full description, go to Event Attributes
in HTML 5.
Use a web development platform that will help you save a lot of time and bring excitement to your daily development work.
It will also create professional best-practices around your code development and team collaboration.
Try Springloops now, the web development platform
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
|
|