The HTML <nav>
tag stands for navigation and provides navigation links, either within the current document or to other pages. Typically, the <nav>
element includes menus, tables of contents, and indexes. Like the <header>
, the <nav>
requires both opening and closing tags.[1]
Pro Tip: The <nav>
element shouldn't include all links from the web page, only the main navigation. For instance, the <footer>
has its own set of links that don't need to be in a <nav>
element.