What is the difference - using between <nav> and <menu> in html5?

What is the difference between using nav and menu in html5?

nav or menu, what?

+4
source share
2 answers

Straight from the mouth of the horse:

http://dev.w3.org/html5/spec-author-view/interactive-elements.html#menus

A menu item represents a list of commands.

eg:.

<menu label="File"> <button type="button" onclick="fnew()">New...</button> <button type="button" onclick="fopen()">Open...</button> <button type="button" onclick="fsave()">Save</button> <button type="button" onclick="fsaveas()">Save as...</button> </menu> 

http://dev.w3.org/html5/spec-author-view/sections.html#the-nav-element

The nav element is a section of a page that links to other pages or parts of a page: a section with navigation links.

+6
source

<nav> is the general section of the site layout containing navigation content

<menu> is a list of commands within navigation or any other section layout

+4
source

Source: https://habr.com/ru/post/1346649/


All Articles