W3C home > Mailing lists > Public > public-html@w3.org > July 2009

Re: <nav> Element

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 13 Jul 2009 10:16:29 +0000 (UTC)
To: Matt Gladwish <matt.gladwish@act.gov.au>
Cc: public-html@w3.org
Message-ID: <Pine.LNX.4.62.0907131012400.23663@hixie.dreamhostps.com>
On Thu, 18 Jun 2009, Matt Gladwish wrote:
>
> I'm confused about the <nav> element example found on the HTML5 working 
> draft.. Can this element be embedded in tags such as the <header> tag..
> 
> <header>
> <nav>
> </nav>
> </header>
> 
> <nav>
> </nav>
> 
> <footer>
> <nav>
> </nav>
> </footer> 

Per the current spec, it's allowed in <header>, but not in <footer>. 
Those two elements are not symmetric. The <footer> element is intended 
just for a page footer, not for appendices and the like. If you have so 
many navigation links going on in the footer that you feel it should have 
its own <nav> element, then just use <nav> instead of <footer> -- it's a 
subsection of the parent section at that point, not a footer.

<nav> is basically equivalent to <section> in terms of document structure, 
and <footer> is basically equivalent to a group of <p>s that apply 
specifically to the current section. So, e.g. a <nav> might contain a 
<footer>, rather than vice versa.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 13 July 2009 10:17:04 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:48 UTC