<menu> element in HTML4 displayed a single column list of choices and was deprecated in favour of the list elements. In HTML5 it has been redefined with
the specific purpose of showing a list of commands.
This list can have two forms, firstly a tool bar with a series of icons and/or buttons to aid user interaction with a page or program or secondly as a context menu. A context menu appears after a user interaction such as a right mouse click and offers options based on the object clicked. An example of a context menu can be seen when you right click on your desktop - the list of options shown is a context menu.
The commands displayed by the
<menu> element can be placed within a series of
<li> elements where the
tags replace the
- HTML5 GLOBAL ATTRIBUTES
- type - sets the kind of menu, can be set accordingly**:
- toolbar - a tool bar
- context - a context menu
- label - the name of the menu - a string.
**NOTE: If the type attribute is not present then the menu displayed is neither a tool bar nor a context menu, it is just a list of commands.