HTML 5 <menu> tag
Definition and Usage
The <menu> tag defines a menu list. Use this when you wish to list form
controls.
Differences Between HTML 4.01 and HTML 5
The menu element was deprecated in HTML 4.01.
The menu element is redefined in HTML 5, and should now be used to list form
controls.
Tips and Notes
Tip: Use CSS styles to define the type of list!
Example
Attributes
- 4: indicates if the attribute is defined in HTML 4.01
- 5: indicates if the attribute is defined in HTML 5
Attribute |
Value |
Description |
4 |
5 |
autosubmit |
true
false |
If true, then form controls, such as
drop-down lists, radiobuttons etc. will be automatically submitted when
changed |
|
5 |
compact |
compact_rendering |
Not supported. Use CSS instead |
4 |
|
label |
menulabel |
Defines a visible label for the menu |
|
5 |
type |
context
toolbar
list |
Defines which type of menu to display.
Default value is "list". |
|
5 |
Standard Attributes
class, contenteditable, contextmenu, dir, draggable, id,
irrelevant, lang, ref, registrationmark, tabindex, template, title |
For a full description, go to Standard
Attributes in HTML 5.
Event Attributes
onabort, onbeforeunload, onblur, onchange, onclick,
oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave,
ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress,
onkeyup, onload, onmessage, onmousedown, onmousemove,
onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect,
onsubmit, onunload |
For a full description, go to Event Attributes
in HTML 5.
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|