- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 19 Oct 2011 22:46:44 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv16430
Modified Files:
	Overview.html 
Log Message:
Tweak some text and add an example to try to clarify some confusion. (whatwg r6704)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5374
retrieving revision 1.5375
diff -u -d -r1.5374 -r1.5375
--- Overview.html	19 Oct 2011 22:24:28 -0000	1.5374
+++ Overview.html	19 Oct 2011 22:46:41 -0000	1.5375
@@ -13855,9 +13855,9 @@
   element when it would make sense to syndicate the contents of the
   element.<p class="note" id="use-div-for-wrappers">The <code><a href="#the-section-element">section</a></code>
   element is not a generic container element. When an element is
-  needed for styling purposes or as a convenience for scripting,
-  authors are encouraged to use the <code><a href="#the-div-element">div</a></code> element
-  instead. A general rule is that the <code><a href="#the-section-element">section</a></code> element is
+  needed only for styling purposes or as a convenience for scripting,
+  authors are encouraged to use the <code><a href="#the-div-element">div</a></code> element instead.
+  A general rule is that the <code><a href="#the-section-element">section</a></code> element is
   appropriate only if the element's contents would be listed
   explicitly in the document's <a href="#outline">outline</a>.<div class="example">
 
@@ -13937,6 +13937,53 @@
  ></Body
 ></Html></pre>
 
+  </div><div class="example">
+
+   <p>In this example, a book author has marked up some sections as
+   chapters and some as appendices, and uses CSS to style the headers
+   in these two classes of section differently. The whole book is
+   wrapped in an <code><a href="#the-article-element">article</a></code> element as part of an even
+   larger document containing other books.</p>
+
+   <pre><article class="book">
+ <style>
+  section { border: double medium; margin: 2em; }
+  section.chapter h1 { font: 2em Roboto, Helvetica Neue, sans-serif; }
+  section.appendix h1 { font: small-caps 2em Roboto, Helvetica Neue, sans-serif; }
+ </style>
+ <header>
+  <hgroup>
+   <h1>My Book</h1>
+   <h2>A sample with not much content</h2>
+  </hgroup>
+  <p><small>Published by Dummy Publicorp Ltd.</small></p>
+ </header>
+ <section class="chapter">
+  <h1>My First Chapter</h1>
+  <p>This is the first of my chapters. It doesn't say much.</p>
+  <p>But it has two paragraphs!</p>
+ </section>
+ <section class="chapter">
+  <h1>It Continutes: The Second Chapter</h1>
+  <p>Bla dee bla, dee bla dee bla. Boom.</p>
+ </section>
+ <section class="chapter">
+  <h1>Chapter Three: A Further Example</h1>
+  <p>It's not like a battle between brightness and earthtones would go
+  unnoticed.</p>
+  <p>But it might ruin my story.</p>
+ </section>
+ <section class="appendix">
+  <h1>Appendix A: Overview of Examples</h1>
+  <p>These are demonstrations.</p>
+ </section>
+ <section class="appendix">
+  <h1>Appendix B: Some Closing Remarks</h1>
+  <p>Hopefully this long example shows that you <em>can</em> style
+  sections, so long as they are used to indicate actual sections.</p>
+ </section>
+</article></pre>
+
   </div><h4 id="the-nav-element"><span class="secno">4.4.3 </span>The <dfn><code>nav</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 Wednesday, 19 October 2011 22:46:49 UTC