Skip to content

Commit

Permalink
[e] (0) <base> example.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3786 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 10, 2009
1 parent 99ae7af commit e450c94
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index
Expand Up @@ -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>
Expand Down
22 changes: 22 additions & 0 deletions source
Expand Up @@ -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>
Expand Down

0 comments on commit e450c94

Please sign in to comment.