Short URL: http://html5.org/r/3789
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 3789 | <meta> examples. | 2009-09-10 09:20 |
Index: source
===================================================================
--- source (revision 3788)
+++ source (revision 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">