Can I use HTML 5 <nav>
for footer links, which is not a primary navigation? Or should it be used once in a page?
Nav in footer? The specification also specifies that the nav element is usually not required in a footer element, that the footer element alone is sufficient to contain the navigation links. Any links in a footer are also unlikely to be main navigation links, as they probably should be elsewhere in the document if so.
In particular, it is common for footers to have a short list of links to various pages of a site, such as the terms of service, the home page, and a copyright page. The footer element alone is sufficient for such cases; while a nav element can be used in such cases, it is usually unnecessary.
Common examples of the nav elements are menus, tables, contents, and indexes. The nav tag is reserved for primary navigation areas, like the main menu across the top of the page or section. A document may have several nav elements, for example, site navigation and one for intra-page navigation.
Nav can be used multiple times on a page in HTML5.
Not all groups of links on a page need to be in a nav element — only sections that consist of major navigation blocks are appropriate for the nav element. In particular, it is common for footers to have a short list of links to various pages of a site, such as the terms of service, the home page, and a copyright page. The footer element alone is sufficient for such cases, without a nav element.
— http://www.w3.org/TR/html5/sections.html#the-nav-element
Remember, though, that there is no limit to the number of nav tags you can use in a page. If you have three main navigations, you can use three nav tags.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With