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 HTML <menu> type Attribute The type attribute in <menu> element is used to define the type of menu bar. It is also used with the <menuitem> tag which defines the type of commands of the menu items. Syntax: <menu type="list|context|toolbar">Note: This attribute has been deprecated and is no longer used. Attr 1 min read HTML | <html> xmlns Attribute The HTML <html> xmlns Attribute is used to specify the XML namespace for a document. This attribute is mainly required in XHTML, not valid in HTML 4.01, and optional in HTML 5. Syntax<html xmlns="http://www.w3.org/1999/xhtml"> Attribute ValuesValueDescriptionhttps://www.geeksforgeeks.org 1 min read HTML <menuitem> icon Attribute The HTML <menuitem> icon Attribute is used to define the pictorial representation of the menu command or menu item. It contains the URL of a specified image. Syntax: <menuitem icon="URL">Attribute Values: It contains a single value URL that specifies an icon for a particular menu item. T 1 min read HTML | <li> value Attribute The <li> value attribute in HTML is used to specify the initial value of the list item. It is only applicable on the ordered list. Syntax: <li value="number">list items </li> Attribute Value: This attribute contains single value number which is used to specify the value of the list 1 min read HTML <a> name Attribute The HTML anchor name attribute is used to specify the name for an <a> element. It is used to reference the form data after submitting the form or to reference the element in JavaScript. Note: The <a> name attribute is not supported by HTML5. Syntax<a name="name"> Attribute Values:A 1 min read Like