Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML menu label Attribute

HTML label property

HTML menu Tag Reference HTML

tag

Example

A toolbar with two menu buttons ("File" and "Edit"), each of which is a drop-down menu with a list of options:

  • Try it »


    Browser support

    Internet ExplorerFirefoxOperaGoogle ChromeSafari

    Almost no major browser supports the label attribute at present.


    Definition and Usage

    The label attribute specifies the visible label of the menu.

    The label attribute is usually used to display the label of a nested menu inside a menu.


    Differences between HTML 4.01 and HTML5

    In HTML5, the element was redefined and the

    label attribute was added.


    Syntax

    HTML tag