menu

menu
HTML menu Element
The HTML <menu> element is made for designating a list. In HTML5(applies 2014 and forward) it is specifically used for a list of <command>s, and not designating generic lists as in this first example.
HTML CODE EXAMPLE
<menu>
  <li>Kiwi</li>
  <li>Pineapple</li>
  <li>Banana</li>
  <li>Strawbarry</li>
</menu>
 
  • Kiwi
  • Pineapple
  • Banana
  • Strawbarry
  • Below is an example of a menu <command> list:
    HTML CODE EXAMPLE
    <menu type="context">
        <command type="command" label="command 1" onClick="alert('cmd 1')">
            Cmd 1
        </command>
        <command type="command" label="command 2" onClick="alert('cmd 2')">
            Cmd 2
        </command>
        <command type="command" label="command 3" onClick="alert('cmd 3')">
            Cmd 3
        </command>
    </menu>

    0 Response to "menu"

    Post a Comment