HTML <menu> tag
Definition and Usage
The <menu> tag defines a menu list.
Differences Between HTML and XHTML
The menu element was deprecated in HTML 4.01.
The menu element is not supported in XHTML 1.0 Strict DTD.
Tips and Notes
Tip: Use CSS styles to define the type of list!
Example
| Source |
Output |
<menu>
<li>html</li>
<li>xhtml</li>
</menu> |
|
Optional Attributes
DTD indicates in which DTD the attribute is
allowed. S=Strict, T=Transitional, and F=Frameset.
| Attribute |
Value |
Description |
DTD |
| compact |
compact_rendering |
Deprecated. Use styles instead |
TF |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
| onclick, ondblclick, onfocus, onblur, onmousedown,
onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown,
onkeyup |
For a full description, go to Event Attributes.
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
|
|