W3C home > Mailing lists > Public > www-archive@w3.org > March 2010

Re: Which tag shall i use for navigation menu (<menu type="list"> or <nav><ul>)?

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 16 Mar 2010 00:04:32 +0000 (UTC)
To: Alex Troll <troll@2s.ru>
Cc: www-archive@w3.org
Message-ID: <Pine.LNX.4.64.1003160002150.13402@ps20323.dreamhostps.com>
On Sat, 13 Mar 2010, Alex Troll wrote:
> I'd very like to use <menu> tag for my primary navigation menu of
> links (not js-actions as html5-spec advise), cause it does semantics
> sense for me. And it already has back compatibility with old browsers
> (from the html3).
> Or should i use <nav><ul id="menu"> for that purpose?


> Or even <nav><menu>?

<menu> in HTML5 is for toolbars or context menus.

> I think the meaning of <nav> element should be reconsidered. As
> html5doctor.com said there are many true "navigation uses", like:
>     * Table of Contents
>     * Previous/next buttons (or pagination)
>     * Search form
>     * Breadcrumbs
> Here in Russia, we called "navigation menu of links" only "menu" in
> discussions. And translate "menu" as "site's primary navigation menu",
> not as "program menu, or command menu". We called it "menu" ten years
> ago, and calling now. Is it different than in Europe?

Element names in HTML have little relationship to the usage of those names 
in reality, to be honest. I wouldn't pay too close attention to the 
meaning of the element names in common conversation; only their definition 
in the spec matters.

> So, which tag shall i use for site's primary navigation and why?

<nav>, because that's what it's for.

> If you don't mind i'd like to post your answer in my blog, there are 
> near half-hundred of web-developers who interested in this question. 


> Should we listen to specification or not.

Yes we should. :-)

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 16 March 2010 00:05:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:43:39 UTC