Easy Tutorial
❮ Att Tr Charoff Att A Target ❯

HTML <menu> label Attribute

HTML <menu> Tag

Example

A toolbar with two menu buttons ("File" and "Edit"), each being a dropdown menu with a series of options:


Browser Support

Currently, almost no major browsers support the label attribute.


Definition and Usage

The label attribute specifies the visible label for the menu.

The label attribute is typically used to display the label of nested menus within the menu.


Differences Between HTML 4.01 and HTML5

In HTML5, the <menu> element has been redefined and the label attribute has been added.


Syntax

Attribute Values

Value Description
text Specifies the visible label for the menu.
❮ Att Tr Charoff Att A Target ❯