1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html lang=en>
<head>
<title>BASE - Document Base URI</title>
<link rev=Made href="mailto:liam@htmlhelp.com">
<link rel=Start href="../index.html">
<link rel=Glossary href="../../glossary/glossary.html">
<link rel=Copyright href="../../copyright.html">
<link rel=StyleSheet href="../style.css" type="text/css">
<link rel=StyleSheet href="../aural.css" type="text/css" media=aural>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="author" content="Liam Quinn">
<meta name="description" content="A description of HTML 4.0's BASE element for setting a document's base URI.">
<meta name="keywords" content="BASE, base element, base URI, base URL, base href, baseref, HyperText Markup Language, HTML, HTML4, HTML 4.0, Web Design Group, WDG, <base> tag, <BASE> tag">
<script type="text/javascript">
<!--
var hrefspecText;
function hrefReq() {
var gt;
gt = unescape(new String("%3E"));
if (document.readyState == "complete") {
hrefspecText = document.all.hrefspec.innerHTML;
document.all.hrefspec.innerHTML = "<strong class=required" + gt + hrefspecText + "<\/strong" + gt;
window.onload = "";
}
}
function hrefNotReq() {
if (document.readyState == "complete") {
document.all.hrefspec.innerHTML = hrefspecText;
window.onload = "";
}
}
function toggle() {
if (document.all.toggler.value == "Hide non-strict attributes") {
if (document.readyState == "complete") {
hrefReq();
}
else {
window.onload = hrefReq;
}
document.styleSheets[0].addRule("div.transitional", "display:none");
document.styleSheets[0].addRule("li.transitional", "display:none");
document.styleSheets[0].addRule(".transitional", "speak:none");
document.all.toggler.value = "Show non-strict attributes";
} else {
if (document.readyState == "complete") {
hrefNotReq();
}
else {
window.onload = hrefNotReq;
}
document.styleSheets[0].addRule("div.transitional", "display:block");
document.styleSheets[0].addRule("li.transitional", "display:list-item");
document.styleSheets[0].addRule(".transitional", "speak:inherit");
document.all.toggler.value = "Hide non-strict attributes";
}
}
// -->
</script>
</head>
<body>
<h2><img src="../wdglogo1.gif" width=250 height=83 alt="The Web Design Group"></h2>
<h1>BASE - Document Base <abbr class=initialism title="Uniform Resource Identifier">URI</abbr></h1>
<script type="text/javascript">
<!--
if (document.styleSheets) {
var gt;
gt = unescape(new String("%3E"));
document.write("<p" + gt + "<input type=button value=\"Hide non-strict attributes\" id=toggler accesskey=s onclick=\"toggle()\"" + gt + "<\/p" + gt);
}
// -->
</script>
<table>
<tr valign=top>
<th>Syntax</th>
<td><strong class=required><BASE></strong></td>
</tr>
<tr valign=top>
<th>Attribute Specifications</th>
<td>
<ul>
<li id=hrefspec>HREF=<var><a href="../values.html#uri">URI</a></var> (base <abbr class=initialism title="Uniform Resource Identifier">URI</abbr> reference)</li>
<li class=transitional>TARGET=<var><a href="../values.html#frametarget">FrameTarget</a></var> (frame to render links in)</li>
</ul>
</td>
</tr>
<tr valign=top>
<th>Contents</th>
<td>Empty</td>
</tr>
<tr valign=top>
<th>Contained in</th>
<td><a href="head.html">HEAD</a></td>
</tr>
</table>
<p>The <strong class=html>BASE</strong> element defines the document's <em>base <abbr class=initialism title="Uniform Resource Identifier">URI</abbr></em> for resolving relative <abbr class=initialism title="Uniform Resource Identifier">URI</abbr>s contained within the document. A document cannot contain more than one <strong class=html>BASE</strong> element. When present, the <strong class=html>BASE</strong> element must appear in the <strong class=html><a href="head.html">HEAD</a></strong>, prior to any elements that include a partial <abbr class=initialism title="Uniform Resource Identifier">URI</abbr>.</p>
<p><strong class=html>BASE</strong>'s <strong class=html>HREF</strong> attribute, required in <a href="../html/doctype.html#strict">HTML4.0 Strict</a>, specifies the absolute <abbr class=initialism title="Uniform Resource Identifier">URI</abbr> used to resolve relative <abbr class=initialism title="Uniform Resource Identifier">URI</abbr>s. See <cite><a href="http://www.stack.nl/%7Egalactus/html/urls.html">Using Relative <abbr class=initialism title="Uniform Resource Locator">URL</abbr>s</a></cite> for more details on using and resolving relative <abbr class=initialism title="Uniform Resource Identifier">URI</abbr>s.</p>
<p>Most Web pages do not require an explicit base <abbr class=initialism title="Uniform Resource Identifier">URI</abbr> since the document's <abbr class=initialism title="Uniform Resource Identifier">URI</abbr> is a suitable base. An explicit base <abbr class=initialism title="Uniform Resource Identifier">URI</abbr> is only required when the same document may be accessed at different <abbr class=initialism title="Uniform Resource Identifier">URI</abbr>s or when the document has no <abbr class=initialism title="Uniform Resource Identifier">URI</abbr> (<abbr title="for example"><i lang=la>e.g.</i></abbr>, sending an <abbr class=initialism title="HyperText Markup Language">HTML</abbr> document by e-mail).</p>
<div class=transitional>
<p><a name="target">The <strong class=html>TARGET</strong> attribute</a> is used with <a href="../frames/index.html">frames</a> to specify in which frame all links in document should be rendered by default. The target frame specified by <strong class=html>BASE</strong> can be overridden by a given link using the link's <strong class=html>TARGET</strong> attribute.</p>
<p>If no frame with the specified target name exists, the links are rendered in a new window unless overridden by the user. Special frame names begin with an underscore:</p>
<ul>
<li><strong class=html>_blank</strong> renders the links in a new, unnamed window</li>
<li><strong class=html>_self</strong> renders the links in the current frame</li>
<li><strong class=html>_parent</strong> renders the links in the immediate <strong class=html><a href="../frames/frameset.html">FRAMESET</a></strong> parent</li>
<li><strong class=html>_top</strong> renders the links in the full, unframed window</li>
</ul>
</div>
<h2>More Information</h2>
<ul>
<li><a href="http://www.w3.org/TR/REC-html40/struct/links.html#edef-BASE">BASE in <abbr class=initialism title="World Wide Web Consortium">W3C</abbr> HTML4.0 Recommendation</a></li>
<li><a href="http://www.w3.org/TR/REC-html32#base">BASE in <abbr class=initialism title="World Wide Web Consortium">W3C</abbr> HTML3.2 Recommendation</a></li>
<li><a href="http://www.w3.org/MarkUp/html-spec/html-spec_5.html#SEC5.2.2">BASE in HTML2.0 Standard</a></li>
<li><a href="../../wilbur/head/base.html">BASE in <abbr class=initialism title="Web Design Group">WDG</abbr> HTML3.2 Reference</a></li>
<li><a href="http://www.hut.fi/u/jkorpela/HTML3.2/5.7.html">BASE in <cite>Learning HTML3.2 by Examples</cite></a></li>
<li><a href="http://ds.internic.net/rfc/rfc1808.txt"><abbr class=initialism title="Request for Comments">RFC</abbr> 1808: Relative Uniform Resource Locators</a></li>
</ul>
<div class=footer>
<address>Maintained by <a href="http://www.htmlhelp.com/%7Eliam/">Liam Quinn</a> <<a href="mailto:liam@htmlhelp.com">liam@htmlhelp.com</a>></address>
<p class=toolbar><a href="http://www.htmlhelp.com/"><img src="../wdglogo-small.gif" width=105 height=40 alt="Web Design Group ~"></a> <a href="../index.html" rel=Start>HTML4.0Reference</a>~ <a href="../olist.html">ElementsbyFunction</a>~ <a href="../alist.html">ElementsAlphabetically</a></p>
<p class=copyright><a href="../../copyright.html">Copyright </a> 1998 Liam Quinn. All rights reserved.</p>
</div>
</body>
</html>
|