[html5] r3786 - [e] (0) <base> example.

whatwg at whatwg.org whatwg at whatwg.org
Thu Sep 10 02:02:36 PDT 2009


Author: ianh
Date: 2009-09-10 02:02:36 -0700 (Thu, 10 Sep 2009)
New Revision: 3786

Modified:
   index
   source
Log:
[e] (0) <base> example.

Modified: index
===================================================================
--- index	2009-09-10 08:43:04 UTC (rev 3785)
+++ index	2009-09-10 09:02:36 UTC (rev 3786)
@@ -10332,8 +10332,29 @@
 
   </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><!DOCTYPE html>
+<html>
+    <head>
+        <title>This is an example for the &lt;base&gt; element</title>
+        <base href="http://www.example.com/news/index.html">
+    </head>
+    <body>
+        <p>Visit the <a href="archives.html">archives</a>.</p>
+    </body>
+</html></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>
 
   <dl class=element><dt>Categories</dt>

Modified: source
===================================================================
--- source	2009-09-10 08:43:04 UTC (rev 3785)
+++ source	2009-09-10 09:02:36 UTC (rev 3786)
@@ -10820,8 +10820,30 @@
 
   </div>
 
+  <div class="example">
 
+   <p>In this example, a <code>base</code> element is used to set the
+   <span>document base URL</span>:</p>
 
+   <pre><!DOCTYPE html>
+<html>
+    <head>
+        <title>This is an example for the &lt;base&gt; element</title>
+        <base href="http://www.example.com/news/index.html">
+    </head>
+    <body>
+        <p>Visit the <a href="archives.html">archives</a>.</p>
+    </body>
+</html></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>The <dfn><code>link</code></dfn> element</h4>
 
   <dl class="element">




More information about the Commit-Watchers mailing list