Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use HTML 5 <nav> for footer links , which is not a primary navigation?

Can I use HTML 5 <nav> for footer links, which is not a primary navigation? Or should it be used once in a page?

like image 890
Jitendra Vyas Avatar asked Oct 04 '10 12:10

Jitendra Vyas


People also ask

Should footer links be in a NAV?

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.

Can NAV be used in footer?

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.

What would be an appropriate place to have a NAV NAV tag?

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.

Can you have two nav elements in HTML?

Nav can be used multiple times on a page in HTML5.


2 Answers

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

like image 66
Quentin Avatar answered Oct 05 '22 07:10

Quentin


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.

like image 31
Fra Sprea Avatar answered Oct 05 '22 08:10

Fra Sprea