HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
3786<base> example.2009-09-10 09:02
@@ -10813,20 +10813,42 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p>
   with <code title="attr-base-target">target</code> attributes, all but
   the first are ignored.</p>
 
   <p>The <dfn title="dom-base-href"><code>href</code></dfn> and <dfn
   title="dom-base-target"><code>target</code></dfn> IDL attributes
   must <span>reflect</span> the respective content attributes of the
   same name.</p>
 
   </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">
    <dt>Categories</dt>
    <dd><span>Metadata content</span>.</dd>
    <dd>If the <code title="attr-itemprop">itemprop</code> attribute is present: <span>flow content</span>.</dd>
    <dd>If the <code title="attr-itemprop">itemprop</code> attribute is present: <span>phrasing content</span>.</dd>
    <dt>Contexts in which this element may be used:</dt>

|