[html5] r3789 - [e] (0) <meta> examples.

whatwg at whatwg.org whatwg at whatwg.org
Thu Sep 10 02:20:26 PDT 2009


Author: ianh
Date: 2009-09-10 02:20:25 -0700 (Thu, 10 Sep 2009)
New Revision: 3789

Modified:
   index
   source
Log:
[e] (0) <meta> examples.

Modified: index
===================================================================
--- index	2009-09-10 09:11:48 UTC (rev 3788)
+++ index	2009-09-10 09:20:25 UTC (rev 3789)
@@ -10825,10 +10825,24 @@
 
    <dt><dfn id=meta-generator title=meta-generator>generator</dfn></dt>
 
-   <dd><p>The value must be a free-form string that identifies the
-   software used to generate the document. This value must not be used
-   on hand-authored pages.</dd>
+   <dd>
 
+    <p>The value must be a free-form string that identifies the
+    software used to generate the document. This value must not be
+    used on hand-authored pages.</p>
+
+    <div class=example>
+
+     <p>Here is what a tool called "Frontweaver" could include in its
+     output, in the page's <code><a href=#the-head-element-0>head</a></code> element, to identify
+     itself as the tool used to generate the page:</p>
+
+     <pre><meta name=generator content="Frontweaver 8.2"></pre>
+
+    </div>
+
+   </dd>
+
   </dl><h5 id=other-metadata-names><span class=secno>4.2.5.2 </span>Other metadata names</h5>
 
   <p><dfn id=concept-meta-extensions title=concept-meta-extensions>Extensions to the predefined
@@ -11264,6 +11278,17 @@
     represents a number of seconds before the page is to be replaced
     by the page at the given <a href=#url>URL</a>.</p>
 
+    <div class=example>
+
+     <p>A news organisation's front page could include the following
+     markup in the page's <code><a href=#the-head-element-0>head</a></code> element, to ensure that
+     the page automatically reloads from the server every five
+     minutes:</p>
+
+     <pre><meta http-equiv="Refresh" content="600"></pre>
+
+    </div>
+
    </dd>
 
   </dl><p>There must not be more than one <code><a href=#meta>meta</a></code> element with
@@ -11409,7 +11434,24 @@
   <p>In XHTML, the XML declaration should be used for inline character
   encoding information, if necessary.</p>
 
+  <div class=example>
 
+   <p>In HTML, to declare that the character encoding is UTF-8, the
+   author could include the following markup near the top of the
+   document (in the <code><a href=#the-head-element-0>head</a></code> element):</p>
+
+   <pre><meta charset="utf-8"></pre>
+
+   <p>In XML, the XML declaration would be used instead, at the very
+   top of the markup:</p>
+
+   <pre><?xml version="1.0" encoding="utf-8"?></pre>
+
+  </div>
+
+
+
+
   <h4 id=the-style-element><span class=secno>4.2.6 </span>The <dfn><code>style</code></dfn> element</h4>
 
   <dl class=element><dt>Categories</dt>

Modified: source
===================================================================
--- source	2009-09-10 09:11:48 UTC (rev 3788)
+++ source	2009-09-10 09:20:25 UTC (rev 3789)
@@ -11380,13 +11380,28 @@
 
    <dt><dfn title="meta-generator">generator</dfn></dt>
 
-   <dd><p>The value must be a free-form string that identifies the
-   software used to generate the document. This value must not be used
-   on hand-authored pages.</p></dd>
+   <dd>
 
+    <p>The value must be a free-form string that identifies the
+    software used to generate the document. This value must not be
+    used on hand-authored pages.</p>
+
+    <div class="example">
+
+     <p>Here is what a tool called "Frontweaver" could include in its
+     output, in the page's <code>head</code> element, to identify
+     itself as the tool used to generate the page:</p>
+
+     <pre><meta name=generator content="Frontweaver 8.2"></pre>
+
+    </div>
+
+   </dd>
+
   </dl>
 
 
+
   <h5>Other metadata names</h5>
 
   <p><dfn title="concept-meta-extensions">Extensions to the predefined
@@ -11902,6 +11917,17 @@
     represents a number of seconds before the page is to be replaced
     by the page at the given <span>URL</span>.</p>
 
+    <div class="example">
+
+     <p>A news organisation's front page could include the following
+     markup in the page's <code>head</code> element, to ensure that
+     the page automatically reloads from the server every five
+     minutes:</p>
+
+     <pre><meta http-equiv="Refresh" content="600"></pre>
+
+    </div>
+
    </dd>
 
   </dl>
@@ -12063,7 +12089,24 @@
   <p>In XHTML, the XML declaration should be used for inline character
   encoding information, if necessary.</p>
 
+  <div class="example">
 
+   <p>In HTML, to declare that the character encoding is UTF-8, the
+   author could include the following markup near the top of the
+   document (in the <code>head</code> element):</p>
+
+   <pre><meta charset="utf-8"></pre>
+
+   <p>In XML, the XML declaration would be used instead, at the very
+   top of the markup:</p>
+
+   <pre><?xml version="1.0" encoding="utf-8"?></pre>
+
+  </div>
+
+
+
+
   <h4>The <dfn><code>style</code></dfn> element</h4>
 
   <dl class="element">




More information about the Commit-Watchers mailing list