HTML <menu> label Attribute Last Updated : 12 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The HTML <menu> label Attribute is used to specify a text value that indicates the visible label name of the menu element Although, this attribute is also used to specify the name of the menu items inside the menu. Syntax: <menu label="text"> Note: This attribute has been deprecated and is no longer used. Attribute Values text: It contains a single value that defines the name of the label of the menu Example: Below code illustrates the use of label attribute with the <menu> tag. ; HTML <!DOCTYPE html> <html> <body> <center> <h1 style="color: green;"> GeeksforGeeks </h1> <h2>HTML <menu> label Attribute</h2> <div style="background:green; border:2px solid black; padding: 10px;" contextmenu="geeks"> <p>A Computer Science Portal for Geeks</p> <menu type="context" id="geeks"> <menu label="Share on..."> <menuitem label="Twitter" onclick= "window.open('//twitter.com/intent/tweet?text=' + window.location.href);"> </menuitem> <menuitem label="Pinterest" onclick="window.open( 'http://pinterest.com/pin/create/button/?url=' + window.location.href);"> </menuitem> </menu> <menuitem label="Email This Page" onclick="window.location='mailto:?body=' + window.location.href;"> </menuitem> </menu> </div> <p>A Computer Science Portal for Geeks</p> <hr> <p>Right click on green div and see the menuitem </center> </body> </html> Output: Supported Browsers: Firefox 8.0 Comment More infoAdvertise with us Next Article HTML <menu> label Attribute M manaschhabra2 Follow Improve Article Tags : HTML HTML-Tags HTML-Attributes HTML-Basics Similar Reads HTML | <option> label Attribute The HTML option label Attribute is used to specify the text value which represents the shorted label for option. The shortest version will be displayed in the drop-down list. Syntax: <option label="text"> Attribute Values: It contains single value text which specify the shorter version for an 1 min read HTML | <track> label Attribute The HTML <track> label Attribute is used to specify the label of the text track. Syntax: <track src="subtitles_en.vtt" kind="subtitles" srclang="en" label="English"> Attribute Values: label: It specify the label of the text track. Example: html <!DOCTYPE html> <html> <head 1 min read HTML | <optgroup> label Attribute The HTML optgroup label Attribute is used to specify a label for an <optgroup> Element. Syntax: <optgroup label="text"> Attribute Values: It contains the value i.e text which specify the description for a optgroup Element. Example: html highligh=19 <!DOCTYPE html> <html> < 1 min read HTML <label> for Attribute The HTML <label> for Attribute is used to specify the type of form element a label is bound to. Syntax: <label for="element_id"> Attribute Values: It contains the value i.e element_id which specify the id of the element that the label is bound to. Example: This Example that illustrates t 1 min read HTML <label> form Attribute The HTML <label> form Attribute is used to specify the form to which the label belongs, associating it with a specific input element. Syntax: <label form="form_id"> Attribute Values: The form attribute in HTML's <label> tag specifies the id of the <form> element to which the 1 min read Like