前端 未结 5 1731
说谎
说谎 2020-11-29 17:57

W3Schools.com and I\'m pretty sure I remember seeing W3C.org state that

should be used for Toolbar menus and listing form control commands.

5条回答
  •  星月不相逢
    2020-11-29 18:26

    nav is used for groups of internal links (a elements). Generally this means the links should travel to separate pages, or change content in the case of an AJAX page. Expect some sort of content change when clicking on a nav item.

    menu is used for groups of controls (a, input, button). Generally this means the inputs should perform a function within the page. Expect some sort of javascript interaction when clicking on a menu item.

    nav: the navigation for the site.

    menu: the menu for a web application.

提交回复
热议问题