Question

Possible Duplicate:
<nav> or <menu> (HTML5)

HTML have two semantic tags for create a menu in a page. Where I should use the tag <menu>, and where the tag <nav>. What is the difference in these tags? P.S. Sorry for my english.

Was it helpful?

Solution

<nav> Should be used for site/page navigation - it implies that clicking links in a nav element will take the browser to different content. It is quite widely supported and the latest version of most browsers will handle it natively.

<menu> Is for UI features that don't effect actual navigation - for example, if you had a rich text editor, any buttons you have for text formatting could go in a menu element. As far as I know menu isn't supported by anybody yet.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top