HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/3786

File a bug

SVNBugCommentTime (UTC)
3786<base> example.2009-09-10 09:02
Index: source
===================================================================
--- source	(revision 3785)
+++ source	(revision 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>&lt;!DOCTYPE html>
+&lt;html>
+    &lt;head>
+        &lt;title>This is an example for the &amp;lt;base&amp;gt; element&lt;/title>
+        &lt;base href="http://www.example.com/news/index.html">
+    &lt;/head>
+    &lt;body>
+        &lt;p>Visit the &lt;a href="archives.html">archives&lt;/a>.&lt;/p>
+    &lt;/body>
+&lt;/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">

|