HTML <command> label 属性
标签" href="tag-main.html"><main>
<map>
<mark>
<menu>
<meta>
<meter>
<nav>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<html>
<picture>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strike>
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<textarea>
< template>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<tt>
<u>
<ul>
<var>
<video>
<wbr>
HTML <command> label 属性
实例
一个带有 label 的 <command> 元素:
<menu>
<command type="command" label="Save changes"
>Save</command>
</menu>
<command type="command" label="Save changes"
>Save</command>
</menu>
浏览器支持
目前,几乎所有的主流浏览器都不支持 label 属性。
定义和用法
必需的 label 属性规定 command 的名称,用于展示给用户。
HTML 4.01 与 HTML5之间的差异
<command> 标签是 HTML5 中的新标签。
语法
<command label="text">
属性值
| 值 | 描述 |
|---|---|
| text | 规定 command 的可见标签。 |
HTML <command> 标签