HTML <command> icon-Attribut

HTML command 标签参考手册HTML <command> Tag

Beispiele

Das Bild, das das <command>-Element repräsentiert:

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

Selbst ausprobieren »

Browser-Unterstützung

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Derzeit unterstützen fast alle Mainstream-Browser das icon-Attribut nicht.


Definition und Verwendung

Das icon-Attribut gibt ein Bild an, das ein command-Element darstellt.


Unterschiede zwischen HTML 4.01 und HTML5

Das <command>-Tag ist neu in HTML5.


Syntax

<command icon="URL">

Attributwerte

Wert Beschreibung
URL Gibt das Bild an, das das command-Element darstellt.

Mögliche Werte:

  • Absolute URL - verweist auf eine andere Website (z. B. icon="http://www.example.com/lamp.jpg")
  • Relative URL - verweist auf eine Datei innerhalb einer Website (z. B. icon="lamp.jpg")


HTML command 标签参考手册HTML <command>-Tag Andere Erweiterungen