New in HTML5.
This feature is included in the HTML5 specification, but has not been implemented in most mainstream web browsers. Do not use.

<menuitem> HTML Tag

Element of
Semantic Markup
What does <menuitem> HTML Tag do?
The <menuitem> element is used to add menu items and commands to contextual pop-up menus (the menus that appear when you right-click in a web browser).
Display
inline
Usage
semantic | textual

Creating Menu Options

The <menuitem> element defines an item in a menu. It’s designed to help you build pop-up menus using HTML, and is a new element in the HTML 5 specification.

<menuitem label="Home" icon="ico_house.png" onclick="window.open('//index.php?u='+window.location.href);">
</menuitem>

Implementation in Modern Browsers

The majority of browsers don’t support <menuitem> in any form. Only Firefox will render it correctly, and it can only be used where the type attribute of <menu> is set to context. As such, it’s marked Not Implemented since no browser fully supports it.

Claire is an HTML enthusiast.

Browser Support for menuitem

Not supported.8Not supported.Not supported.Not supported.Not supported.