Атрибут типа HTML <menuitem>

❮ HTML-тег <menuitem>

Пример

Элемент <menuitem> типа «команда»:

<menu>
<menuitem type="command" label="Save" onclick="save()">Save</menuitem>
</menu>

Определение и использование

Атрибут type указывает тип команды/пункта меню.


Поддержка браузера

Цифры в таблице указывают на первую версию браузера, которая полностью поддерживает этот атрибут.

Attribute
type Not supported Not supported Not supported Not supported Not supported

Синтаксис

<menuitem type="command|checkbox|radio">

Значения атрибутов

Value Description
command Default. Specifies a normal command with an action
checkbox Specifies a command that can be toggled using a checkbox
radio Specifies a command that can be toggled using a radio button

❮ HTML-тег <menuitem>