Permalink
Browse files

[e] (0) <base> example.

git-svn-id: http://svn.whatwg.org/webapps@3786 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 99ae7af commit e450c940ae45258ec1641c77a4e8ccf2749cf6e8 @Hixie Hixie committed Sep 10, 2009
Showing with 43 additions and 0 deletions.
  1. +21 −0 index
  2. +22 −0 source
View
21 index
@@ -10332,6 +10332,27 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p&gt;
</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>
View
22 source
@@ -10820,6 +10820,28 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/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>

0 comments on commit e450c94

Please sign in to comment.