“<nav>” Tag: The <nav> tag is used to specify navigation links either within the same document or any other document which means it provides link to contents which are either on same or different page/document.
<menu> Tag: The <menu> tag in HTML is used for creating menu lists. It defines a list of commands which can be used by the users to create listing form control, toolbar, context menus, and commands. The <menu> tag was removed from HTML and reintroduced in HTML5. It is not supported on the majority of platforms.
Contents of “menu” tags:
- Why <big> tag is not in HTML5 while <small> tag exists ?
- Difference between <article> tag and <section> tag
- HTML5 | MathML <menclose> Tag
- HTML5 | <footer> Tag
- HTML5 | <details> tag
- HTML5 | <aside> Tag
- HTML5 | <dialog> Tag
- HTML5 | article tag
- HTML5 | <meter> Tag
- HTML5 | date attribute in <input> Tag
- HTML5 | mark Tag
- HTML5 | fieldset Tag
- HTML5 | figcaption Tag
- HTML5 | figure Tag
- HTML5 | <ruby> Tag
- HTML5 | rt Tag
- HTML5 | rp Tag
- HTML5 | MathML <merror> Tag
- HTML5 | MathML <maction> tag
- HTML5 | MathML <mfrac> tag
|S. No.||“nav tag”||“menu tag”|
|1.||Syntax : <nav> </nav>||Syntax : <menu> </menu>|
|2.||The “<nav>” tag creates navigation block which provides link for contents either on the same document/page or any other document/page.||The “<menu>” tag creates a list or menu of commands which can be utilized by the users.|
|3.||The “<nav>” tag is introduced in HTML5.||It was deprecated in HTML 4.01 and reintroduced in HTML5.|
|4.||It is highly compatible and supports most platforms.||It does not have much compatibility.|
|5.||The “<nav>” tag is specifically for grouping elements in a Website.||The “<menu>” tag is for Web Applications to handle/design interactive elements.|
|6.||The contents of nav tag are “<a href=” “>”, “<ul>”, “<ol>” and “<li>” etc.||The contents of menu tag are “<menu>”, “<menuitem>”, “<li>”, “<hr>” and “<script>” etc.|
|7.||It is supported by majority of browsers.||It is not supported by most of the browsers.|
|8.||Examples of browser support: Google Chrome, Microsoft Edge, Safari, Opera Browser, Mozilla Firefox.||Only Mozilla Firefox version 8 supports menu element of HTML5.|
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.