html5/spec Overview.html,1.2955,1.2956

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv892

Modified Files:
	Overview.html 
Log Message:
<base> example. (whatwg r3786)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2955
retrieving revision 1.2956
diff -u -d -r1.2955 -r1.2956
--- Overview.html	10 Sep 2009 08:38:37 -0000	1.2955
+++ Overview.html	10 Sep 2009 08:58:07 -0000	1.2956
@@ -9173,6 +9173,24 @@
   must <a href="#reflect">reflect</a> the respective content attributes of the
   same name.</p>
 
+  </div><div class="example">
+
+   <p>In this example, a <code><a href="#the-base-element">base</a></code> element is used to set the
+   <a href="#document-base-url">document base URL</a>:</p>
+
+   <pre>&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+    &lt;head&gt;
+        &lt;title&gt;This is an example for the &amp;lt;base&amp;gt; element&lt;/title&gt;
+        &lt;base href="http://www.example.com/news/index.html"&gt;
+    &lt;/head&gt;
+    &lt;body&gt;
+        &lt;p&gt;Visit the &lt;a href="archives.html"&gt;archives&lt;/a&gt;.&lt;/p&gt;
+    &lt;/body&gt;
+&lt;/html&gt;</pre>
+
+   <p>The link in the above example would be a link to "<code title="">http://www.example.com/news/archives.html</code>".</p>
+
   </div><h4 id="the-link-element"><span class="secno">4.2.4 </span>The <dfn><code>link</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><dl class="element"><dt>Categories</dt>
    <dd><a href="#metadata-content">Metadata content</a>.</dd>
    <dd>If the <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute is present: <a href="#flow-content">flow content</a>.</dd>

Received on Thursday, 10 September 2009 08:58:20 UTC