X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <command> icon Attribute

HTML command Tag Reference HTML <command> tag

Example

An image that represents the <command> element:

<menu>
<command type="radio" label="Left" icon="left.png"
onclick="setAlign('left')">Left</command>
</menu>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The icon attribute is currently not supported in any of the major browsers.


Definition and Usage

The icon attribute specifies an image that represents the command.


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 picture that represents the command.

Possible values:

  • An absolute URL - points to another web site (like icon="http://www.example.com/lamp.jpg")
  • A relative URL - points to a file within the web site (like icon="lamp.jpg")


HTML command Tag Reference HTML <command> tag

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook