Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Semantic HTML: Should I use the <nav> tag for a tag cloud?

I'm putting together my blog at the moment - which includes a tag cloud to allow people to browse by topic

I'm considering wrapping the tag cloud links in a <nav> tag since these are technically navigational links.

What do others think?

like image 376
bodacious Avatar asked Aug 06 '11 07:08

bodacious


1 Answers

The W3C definition is "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." and then notes "Not all groups of links on a page need to be in a nav element — the element is primarily intended for sections that consist of major navigation blocks."

In my opinion, tag clouds are more similar to results of a search query (which are definitely not navigation blocks) than to well defined navigation elements.

So: I wouldn't.

like image 195
Olaf Avatar answered Sep 18 '22 23:09

Olaf