HTML <command> iconAttribute
Examples
The image that represents the <command> element:
<menu>
<command type="radio" label="Left" icon="left.png"
onclick="setAlign('left')">Left</command>
</menu>
<command type="radio" label="Left" icon="left.png"
onclick="setAlign('left')">Left</command>
</menu>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
Currently, almost all mainstream browsers do not support the icon attribute.
Definition and Usage
The icon attribute specifies an image that represents a command element.
Differences between HTML 4.01 and HTML5
The <command> tag is new in HTML5.
Syntax
<command icon="URL">
Attribute Values
| Value | Description |
|---|---|
| URL | Specifies the image representing the command. Possible values:
|
HTML <command> Tag Other Extensions