nav tag – proper usage
# May 30, 2012 at 3:49 pm
Me and my co-worker argue over the proper use of the < nav > tag. When using the < nav > tag do you put an < ul > inside of it or just a bunch of < a > tags? I typically still use the < ul > inside the < nav > just because it is what I am used to doing and it is still a list of links. What do you guys think?# May 31, 2012 at 5:14 am
Also, just because it’s a list of links doesn’t mean you have to use a nav tag.
In general, and I think this was the spec, the nav tag is to be used to…oh heck, I’ll just cut and paste.
The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links. 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 list of links to various key parts of a site, but the footer element is more appropriate in such cases, and no nav element is necessary for those links.# February 3, 2013 at 2:41 pm
This reply has been reported for inappropriate content.
@chriscoyier recently wrote an article on this: http://css-tricks.com/navigation-in-lists-to-be-or-not-to-be/.
You must be logged in to reply to this topic.