hixie: <html> example (whatwg r3784)

hixie: <html> example (whatwg r3784)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2953&r2=1.2954&f=h
http://html5.org/tools/web-apps-tracker?from=3783&to=3784

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2953
retrieving revision 1.2954
diff -u -d -r1.2953 -r1.2954
--- Overview.html 9 Sep 2009 10:38:46 -0000 1.2953
+++ Overview.html 9 Sep 2009 11:31:13 -0000 1.2954
@@ -9019,7 +9019,24 @@
   dynamically thus has no effect (and thus, no DOM API is provided for
   this attribute).<p class="note">For the purposes of <a href="#concept-appcache-init" title="concept-appcache-init">application cache selection</a>,
   later <code><a href="#the-base-element">base</a></code> elements cannot affect the <a href="#resolve-a-url" title="resolve a url">resolving of relative URLs</a> in <code title="attr-html-manifest"><a href="#attr-html-manifest">manifest</a></code> attributes, as the
-  attributes are processed before those elements are seen.<h3 id="document-metadata"><span class="secno">4.2 </span>Document metadata</h3><h4 id="the-head-element-0"><span class="secno">4.2.1 </span>The <dfn><code>head</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
+  attributes are processed before those elements are seen.<div class="example">
+
+   <p>The <code><a href="#the-html-element-0">html</a></code> element in the following example declares
+   that the document's language is English.</p>
+
+   <pre>&lt;!DOCTYPE html&gt;
+<strong>&lt;html lang="en"&gt;</strong>
+&lt;head&gt;
+&lt;title&gt;Swapping Songs&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;h1&gt;Swapping Songs&lt;/h1&gt;
+&lt;p&gt;Tonight I swapped some of the songs I wrote with some friends, who
+gave me some of the songs they wrote. I love sharing my music.&lt;/p&gt;
+&lt;/body&gt;
+<strong>&lt;/html&gt;</strong></pre>
+
+  </div><h3 id="document-metadata"><span class="secno">4.2 </span>Document metadata</h3><h4 id="the-head-element-0"><span class="secno">4.2.1 </span>The <dfn><code>head</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
    <dt>Contexts in which this element may be used:</dt>
    <dd>As the first element in an <code><a href="#the-html-element-0">html</a></code> element.</dd>

Received on Wednesday, 9 September 2009 11:32:08 UTC