Html-menuitem-tag
提供:Dev Guides
説明
HTML <menuitem>タグは、メニューのメニュー項目を定義するために使用されます。
例
<!Doctype html>
<html>
<head>
<title>HTML menuitem Tag</title>
</head>
<body>
<div style = "border:1px solid #000; padding:20px;" contextmenu = "clickmenu">
<p>Right click inside here....</p>
<menu type = "context" id = "clickmenu">
<menuitem label = "finddevguides" onclick = ""></menuitem>
</menu>
</div>
</body>
</html>
これにより、Firefoxブラウザでのみ次の結果が生成されます-
グローバル属性
このタグは、− link:/html/html_attributes_reference [HTML属性リファレンス]で説明されているすべてのグローバル属性をサポートします
特定の属性
HTML <menuitem>タグは、次の追加属性もサポートしています-
Attribute | Value | Description |
---|---|---|
checked HTML-5 | checked | defines that a menuitem should be checked |
command HTML-5 | ||
default HTML-5 | default | a menuitem is marked as a default command |
disabled HTML-5 | disabled | disables a menuitem and cannot be clicked |
icon HTML-5 | url | defines an icon for a menuitem |
label HTML-5 | text | defines a name for a menuitem which is displayed to the user |
radiogroup HTML-5 | groupname | defiens a group of commands out of which only one can be selected |
type HTML-5 |
checkbox コマンド 無線 |
defines type of command for a menuitem default is command |
イベント属性
このタグは、− link:/html/html_events_reference [HTMLイベントリファレンス]で説明されているすべてのイベント属性をサポートします。
ブラウザのサポート
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
No | Yes | No | No | No | No |