SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: menu element

  1. #1
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,108
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)

    menu element

    Why haven't I seen the <menu> element before?
    http://reference.sitepoint.com/html/menu

    Why does everyone recommend people markup the menu's in <ul>'s if there's a <menu> tag for that?
    Because it can't contain block level elements validly?

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,108
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    I found it was deprecated on another page in the reference..
    Then re-instated in HTML5 - standards are funny old things.

  3. #3
    SitePoint Enthusiast CupidsToejam's Avatar
    Join Date
    Jun 2009
    Location
    TX
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Html5:
    <menu> Is To Be Used For A List Of Commands And Is An Interactive Element And More Likely To Be Used Exclusively In Web Applications.

  5. #5
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,888
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by markbrown4 View Post
    Why haven't I seen the <menu> element before?
    http://reference.sitepoint.com/html/menu

    Why does everyone recommend people markup the menu's in <ul>'s if there's a <menu> tag for that?
    Because it can't contain block level elements validly?
    The <menu> tag was deprecated, as it wasn't felt to be particularly useful. It does not work consistently across different browsers, and it is not advisable to use it - <ul> does the job perfectly OK.

    In HTML5, there will be a new <nav> element that adds the semantics of a navigation menu to the structure of a list.

  6. #6
    SitePoint Enthusiast CupidsToejam's Avatar
    Join Date
    Jun 2009
    Location
    TX
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Stevie, then why is the menu tag in the html5 spec? check my links above?

  7. #7
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,108
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Stevie D View Post
    The <menu> tag was deprecated, as it wasn't felt to be particularly useful. It does not work consistently across different browsers, and it is not advisable to use it - <ul> does the job perfectly OK.
    http://reference.sitepoint.com/html/...ibilitysection
    Quote Originally Posted by Stevie D View Post
    In HTML5, there will be a new <nav> element that adds the semantics of a navigation menu to the structure of a list.
    Ok, so in HTML5 <nav> for navigation, <menu> for things like a toolbar. Sounds pretty straight-forward to me.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •