English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

HTML-Tag-Liste

HTML: <command> label Attribut

Dieser Artikel beschreibt die Verwendung des HTML-command-label-Attributs, zeigt Online-Beispiele, wie man das HTML-command-label-Attribut verwendet, die Kompatibilität des Browsers, die Syntaxdefinition und detaillierte Informationen über seine Attributwerte, das notwendige Attribut label legt den Namen des command fest, der dem Benutzer angezeigt wird.

 HTML <command> Tag

Online-Beispiel

Ein <command>-Element mit <label>:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML <command> <label> Attribut verwenden-Grund教程(oldtoolbag.com)</title>
<script>
function save()
{
    alert("Einige JavaScript...");
}
</script>
</head>
<body>
<menu>
<command type="command" label="Save changes" onclick="save()">Save</command>
</menu>
<p><b>Attention:</b>Currently, almost all mainstream browsers do not support the label attribute.</p>
</body>
</html>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Currently, almost all mainstream browsers do not support the label attribute.

Definition and Usage

The label attribute is required to define the name of the command, which is used to display to the user.

HTML 4.01 and HTML5differences between

<command> Tag is a new tag in HTML5 new tag in

Syntax

<command label="text">

attribute value

valuedescription
textDefine the visible tags for command.
 HTML <command> Tag