HTML5 MENU Tag Redefined

HTML5 Tag Redefined

The tag provides an easy way to create menus on a web page. The HTML element was deprecated in HTML 4.01 but is redefined in HTML5. The HTML tag defines a list/menu of commands. The tag is used for context menus, toolbars and for listing form controls and commands.

  • tag is used within the tag. For example:

  • Which pet do you own?
     
  • Dog
  •  
  • Cat

  • You can also place radio buttons and check boxes inside tags. Have a look at following simple example of tag

    radiobuttons inside tag

       
  • Dog
  •    
  • Cat

  • checkboxes inside tag

       
  • Dog
  •    
  • Cat

  • tag is used instead of
      tag

    Earlier we used to make an unordered list by using
      tag like this:

       
    • New
    •  
    • Open
    •  
    • Save
    •  
    • Quit

    • But as I earlier said, is redefined in HTML5. The element represents an unordered list of commands. It has a type attribute, which can be set to popup or toolbar.

       
    • New
    •  
    • Open
    •  
    • Save
    •  
    • Quit

    • Please note: The tag is valid within blockquote, body, button, center, dd, div, fieldset, form, iframe, li, noframes, noscript, object, td and th tags.