Skip to content
Permalink
Browse files

[e] (0) <base> example.

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 e450c940ae45258ec1641c77a4e8ccf2749cf6e8
Showing with 43 additions and 0 deletions.
  1. +21 −0 index
  2. +22 −0 source
21 index

</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>
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.
You can’t perform that action at this time.