W3C home > Mailing lists > Public > public-html-diffs@w3.org > February 2011

hixie: example for nav of using inline links rather than a list (whatwg r5877)

From: poot <cvsmail@w3.org>
Date: Fri, 11 Feb 2011 18:16:43 -0500
To: public-html-diffs@w3.org
Message-Id: <E1Po2EF-0002yh-1m@jay.w3.org>
hixie: example for nav of using inline links rather than a list (whatwg


RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4718
retrieving revision 1.4719
diff -u -d -r1.4718 -r1.4719
--- Overview.html	11 Feb 2011 22:57:47 -0000	1.4718
+++ Overview.html	11 Feb 2011 23:15:28 -0000	1.4719
@@ -14182,6 +14182,29 @@
+  </div><div class="example">
+   <p>A <code><a href="#the-nav-element">nav</a></code> element doesn't have to contain a list, it
+   can contain other kinds of content as well. In this navigation
+   block, links are provided in prose:</p>
+   <pre>&lt;nav&gt;
+ &lt;h1&gt;Navigation&lt;/h1&gt;
+ &lt;p&gt;You are on my home page. To the north lies &lt;a href="/blog"&gt;my
+ blog&lt;/a&gt;, from whence the sounds of battle can be heard. To the east
+ you can see a large mountain, upon which many &lt;a
+ href="/school"&gt;school papers&lt;/a&gt; are littered. Far up thus mountain
+ you can spy a little figure who appears to be me, desperately
+ scribbling a &lt;a href="/school/thesis"&gt;thesis&lt;/a&gt;.&lt;/p&gt;
+ &lt;p&gt;To the west are several exits. One fun-looking exit is labeled &lt;a
+ href="http://games.example.com/"&gt;"games"&lt;/a&gt;. Another more
+ boring-looking exit is labeled &lt;a
+ href="http://isp.example.net/"&gt;ISP&trade;&lt;/a&gt;.&lt;/p&gt;
+ &lt;p&gt;To the south lies a dark and dank &lt;a href="/about"&gt;contacts
+ page&lt;/a&gt;. Cobwebs cover its disused entrance, and at one point you
+ see a rat run quickly out of the page.&lt;/p&gt;
   </div><h4 id="the-article-element"><span class="secno">4.4.4 </span>The <dfn><code>article</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="#flow-content">Flow content</a>.</dd>
    <dd><a href="#sectioning-content">Sectioning content</a>.</dd>
Received on Friday, 11 February 2011 23:16:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:41:51 UTC