W3C home > Mailing lists > Public > public-html-diffs@w3.org > April 2010

hixie: Add a quite contrived example for <hr>. (whatwg r4995)

From: poot <cvsmail@w3.org>
Date: Mon, 12 Apr 2010 16:27:37 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100412072737.6CB462BBF1@toro.w3.mag.keio.ac.jp>
hixie: Add a quite contrived example for <hr>. (whatwg r4995)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4012&r2=1.4013&f=h
http://html5.org/tools/web-apps-tracker?from=4994&to=4995

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4012
retrieving revision 1.4013
diff -u -d -r1.4012 -r1.4013
--- Overview.html	12 Apr 2010 06:47:32 -0000	1.4012
+++ Overview.html	12 Apr 2010 07:27:15 -0000	1.4013
@@ -13976,6 +13976,51 @@
   a story, or a transition to another topic within a section of a
   reference book.<div class="example">
 
+   <p>The following fictional extract from a project manual shows two
+   sections that use the <code><a href="#the-hr-element">hr</a></code> element to separate topics
+   within the section.</p>
+
+   <pre>&lt;section&gt;
+ &lt;h1&gt;Communication&lt;/h1&gt;
+ &lt;p&gt;There are various methods of communication. This section
+ covers a few of the important ones used by the project.&lt;/p&gt;
+ <strong>&lt;hr&gt;</strong>
+ &lt;p&gt;Communication stones seem to come in pairs and have mysterious
+ properties:&lt;/p&gt;
+ &lt;ul&gt;
+  &lt;li&gt;They can transfer thoughts in two directions once activated
+  if used alone.&lt;/li&gt;
+  &lt;li&gt;If used with another device, they can transfer one's
+  consciousness to another body.&lt;/li&gt;
+  &lt;li&gt;If both stones are used with another device, the
+  consciousnesses switch bodies.&lt;/li&gt;
+ &lt;/ul&gt;
+ <strong>&lt;hr&gt;</strong>
+ &lt;p&gt;Radios use the electromagnetic spectrum in the meter range and
+ longer.&lt;/p&gt;
+ <strong>&lt;hr&gt;</strong>
+ &lt;p&gt;Signal flares use the electromagnetic spectrum in the
+ nanometer range.&lt;/p&gt;
+&lt;/section&gt;
+&lt;section&gt;
+ &lt;h1&gt;Food&lt;/h1&gt;
+ &lt;p&gt;All food at the project is rationed:&lt;/p&gt;
+ &lt;dl&gt;
+  &lt;dt&gt;Potatoes&lt;/dt&gt;
+  &lt;dd&gt;Two per day&lt;/dd&gt;
+  &lt;dt&gt;Soup&lt;/dt&gt;
+  &lt;dd&gt;One bowl per day&lt;/dd&gt;
+ &lt;/dl&gt;
+ <strong>&lt;hr&gt;</strong>
+ &lt;p&gt;Cooking is done by the chefs on a set rotation.&lt;/p&gt;
+&lt;/section&gt;</pre>
+
+   <p>There is no need for an <code><a href="#the-hr-element">hr</a></code> element between the
+   sections themselves, since the <code><a href="#the-section-element">section</a></code> elements and
+   the <code><a href="#the-h1-h2-h3-h4-h5-and-h6-elements">h1</a></code> elements imply thematic changes themselves.</p>
+
+  </div><div class="example">
+
    <p>The following extract from <cite>Pandora's Star</cite> by Peter
    F. Hamilton shows two paragraphs that precede a scene change and
    the paragraph that follows it. The scene change, represented in the
Received on Monday, 12 April 2010 07:28:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:18 GMT