Easy Tutorial
❮ Att Textarea Maxlength Att Command Type ❯

HTML <command> icon Attribute

HTML <command> Tag

Example

Represents the image for the <command> element:


Browser Support

Currently, almost all major browsers do not support the icon attribute.


Definition and Usage

The icon attribute specifies the image that represents the command element.


Differences Between HTML 4.01 and HTML5

The <command> tag is new in HTML5.


Syntax

Attribute Values

Value Description
URL Specifies the image for the command. Possible values: absolute URL - points to another website (e.g., icon="http://www.example.com/lamp.jpg")<br>relative URL - points to a file within the website (e.g., icon="lamp.jpg")

❮ Att Textarea Maxlength Att Command Type ❯