开发者

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 naviga开发者_如何学Ction? Or should it be used once in a page?


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.


You should use the correct tag, if it's not navigation, then don't use <nav>.

Use the <footer> tag: HTML5 footer tag.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜