[html5] r1253 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue Feb 26 03:09:57 PST 2008


Author: ianh
Date: 2008-02-26 03:09:53 -0800 (Tue, 26 Feb 2008)
New Revision: 1253

Modified:
   index
   source
Log:
[e] (0) Add an example for <nav>; fix a note for <dl>.

Modified: index
===================================================================
--- index	2008-02-26 10:09:43 UTC (rev 1252)
+++ index	2008-02-26 11:09:53 UTC (rev 1253)
@@ -8309,8 +8309,45 @@
 
   <p>The <code><a href="#nav">nav</a></code> element represents a section of
    a page that links to other pages or to parts within the page: a section
-   with navigation links.
+   with navigation links. Not all groups of links on a page need to be in a
+   <code><a href="#nav">nav</a></code> element — only sections that
+   consist of primary navigation blocks are appropriate for the <code><a
+   href="#nav">nav</a></code> element. In particular, it is common for
+   footers to have a list of links to various key parts of a site, but the
+   <code><a href="#footer">footer</a></code> element is more appropriate in
+   such cases.
 
+  <div class=example>
+   <p>In the following example, the page has several places where links are
+    present, but only one of those places is considered a navigation section.</p>
+
+   <pre><body>
+ <header>
+  <h1>Wake up sheeple!</h1>
+  <p><a href="news.html">News</a> -
+     <a href="blog.html">Blog</a> -
+     <a href="forums.html">Forums</a></p>
+ </header>
+ <nav>
+  <h1>Navigation</h1>
+  <ul>
+   <li><a href="articles.html">Index of all articles</a><li>
+   <li><a href="today.html">Things sheeple need to wake up for today</a><li>
+   <li><a href="successes.html">Sheeple we have managed to wake</a><li>
+  </ul>
+ </nav>
+ <article>
+  <p>...<em>page content would be here</em>...</p>
+ </article>
+ <footer>
+  <p>Copyright © 2006 The Example Company</p>
+  <p><a href="about.html">About</a> -
+     <a href="policy.html">Privacy Policy</a> -
+     <a href="contact.html">Contact Us</a></p>
+ </footer>
+</body></pre>
+  </div>
+
   <h4 id=the-article><span class=secno>3.8.4 </span>The <dfn
    id=article><code>article</code></dfn> element</h4>
 
@@ -10041,7 +10078,7 @@
    <code><a href="#dt">dt</a></code> elements, then the last group has no
    associated value.
 
-  <p class=note>Such mistakes are often due to using accidentally <code><a
+  <p class=note>Such mistakes are often due to accidentally using <code><a
    href="#dd">dd</a></code> elements in the place of <code><a
    href="#dt">dt</a></code> elements and vice versa. Conformance checkers can
    spot such mistakes and might be able to advise authors how to correctly

Modified: source
===================================================================
--- source	2008-02-26 10:09:43 UTC (rev 1252)
+++ source	2008-02-26 11:09:53 UTC (rev 1253)
@@ -6698,9 +6698,48 @@
 
   <p>The <code>nav</code> element represents a section of a page that
   links to other pages or to parts within the page: a section with
-  navigation links.</p>
+  navigation links. Not all groups of links on a page need to be in a
+  <code>nav</code> element — only sections that consist of
+  primary navigation blocks are appropriate for the <code>nav</code>
+  element. In particular, it is common for footers to have a list of
+  links to various key parts of a site, but the <code>footer</code>
+  element is more appropriate in such cases.</p>
 
+  <div class="example">
 
+   <p>In the following example, the page has several places where
+   links are present, but only one of those places is considered a
+   navigation section.</p>
+
+   <pre><body>
+ <header>
+  <h1>Wake up sheeple!</h1>
+  <p><a href="news.html">News</a> -
+     <a href="blog.html">Blog</a> -
+     <a href="forums.html">Forums</a></p>
+ </header>
+ <nav>
+  <h1>Navigation</h1>
+  <ul>
+   <li><a href="articles.html">Index of all articles</a><li>
+   <li><a href="today.html">Things sheeple need to wake up for today</a><li>
+   <li><a href="successes.html">Sheeple we have managed to wake</a><li>
+  </ul>
+ </nav>
+ <article>
+  <p>...<em>page content would be here</em>...</p>
+ </article>
+ <footer>
+  <p>Copyright © 2006 The Example Company</p>
+  <p><a href="about.html">About</a> -
+     <a href="policy.html">Privacy Policy</a> -
+     <a href="contact.html">Contact Us</a></p>
+ </footer>
+</body></pre>
+
+  </div>
+
+
   <h4>The <dfn><code>article</code></dfn> element</h4>
 
   <dl class="element">
@@ -8212,7 +8251,7 @@
   <code>dt</code> elements, then the last group has no associated
   value.</p>
 
-  <p class="note">Such mistakes are often due to using accidentally
+  <p class="note">Such mistakes are often due to accidentally using 
   <code>dd</code> elements in the place of <code>dt</code> elements
   and vice versa. Conformance checkers can spot such mistakes and
   might be able to advise authors how to correctly use the markup.</p>




More information about the Commit-Watchers mailing list