Version-//W3C//DTD XHTML 1.0 Transitional//EN
Elementmenu
Purposemenu list
DescriptionThis element encloses a list of items constituting a menu, or a set from which you can select. The intent is that menu creates lists which are more compact than ul lists. However, the menu element was never rendered differently in many browsers and is rarely used.
Start tagRequired <menu>
Attributes
NameTypeDefaultComment
class CDATA #IMPLIEDspace-separated list of classes
compact( compact )#IMPLIEDreduced interitem spacing
dir( ltr | rtl )#IMPLIEDdirection for weak/neutral text
idID#IMPLIEDdocument-wide unique id
langNMTOKEN#IMPLIEDlanguage code (backwards compatible); language code as RFC3066
onclick CDATA #IMPLIEDa pointer button was clicked; script expression
ondblclick CDATA #IMPLIEDa pointer button was double clicked; script expression
onkeydown CDATA #IMPLIEDa key was pressed down; script expression
onkeypress CDATA #IMPLIEDa key was pressed and released; script expression
onkeyup CDATA #IMPLIEDa key was released; script expression
onmousedown CDATA #IMPLIEDa pointer button was pressed down; script expression
onmousemove CDATA #IMPLIEDa pointer was moved within; script expression
onmouseout CDATA #IMPLIEDa pointer was moved away; script expression
onmouseover CDATA #IMPLIEDa pointer was moved onto; script expression
onmouseup CDATA #IMPLIEDa pointer button was released; script expression
style CDATA #IMPLIEDassociated style info; style sheet data
title CDATA #IMPLIEDadvisory title; text used for titles
xml:langNMTOKEN#IMPLIEDlanguage code (as per XML 1.0 spec); language code as RFC3066
Content( li )+
End tagRequired </menu>
Referenced in applet blockquote body button center dd del div fieldset form iframe ins li map noframes noscript object td th
Example
SourceAppearance
On the menu:
<ul>
<li>Pizza</li>
<li>Ham</li>
<li>Cheese
<ul>
<li>Cheddar</li>
<li>Munster</li>
</ul>
</li>
<li>Eggs</li>
</ul>
On the menu:
  • Pizza
  • Ham
  • Cheese
    • Cheddar
    • Munster
  • Eggs
Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.