aboutsummaryrefslogtreecommitdiff
path: root/files/id/web/html/element/base/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/id/web/html/element/base/index.html')
-rw-r--r--files/id/web/html/element/base/index.html154
1 files changed, 0 insertions, 154 deletions
diff --git a/files/id/web/html/element/base/index.html b/files/id/web/html/element/base/index.html
deleted file mode 100644
index 6b4a556381..0000000000
--- a/files/id/web/html/element/base/index.html
+++ /dev/null
@@ -1,154 +0,0 @@
----
-title: <base>
-slug: Web/HTML/Element/base
-translation_of: Web/HTML/Element/base
----
-<p id="Summary">{{HTMLRef}}</p>
-
-<p>The <strong>HTML <code>&lt;base&gt;</code> element</strong> specifies the base URL to use for all relative URLs contained within a document. There can be only one <code>&lt;base&gt;</code> element in a document. </p>
-
-<p>The base URL of a document can be queried from a script using {{domxref('document.baseURI')}}.</p>
-
-<table class="properties">
- <tbody>
- <tr>
- <th><a href="/en-US/docs/Web/HTML/Content_categories">Content categories</a></th>
- <td>Metadata content.</td>
- </tr>
- <tr>
- <th>Permitted content</th>
- <td>None, it is an {{Glossary("empty element")}}.</td>
- </tr>
- <tr>
- <th>Tag omission</th>
- <td>There must be no closing tag.</td>
- </tr>
- <tr>
- <th>Permitted parents</th>
- <td>Any {{HTMLElement("head")}} that doesn't contain any other {{HTMLElement("base")}} element</td>
- </tr>
- <tr>
- <th>Permitted ARIA roles</th>
- <td>None</td>
- </tr>
- <tr>
- <th>DOM interface</th>
- <td>{{domxref("HTMLBaseElement")}}</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Attributes">Attributes</h2>
-
-<p>This element's attributes include the <a href="/en-US/docs/HTML/Global_attributes">global attributes</a>.</p>
-
-<dl>
- <dt>{{htmlattrdef("href")}}</dt>
- <dd>The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed.</dd>
- <dt>{{htmlattrdef("target")}}</dt>
- <dd>A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a <em>browsing context</em> (for example: tab, window, or inline frame). The following keywords have special meanings:
- <ul>
- <li><code>_self</code>: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.</li>
- <li><code>_blank</code>: Load the result into a new unnamed browsing context.</li>
- <li><code>_parent</code>: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as <code>_self</code>.</li>
- <li><code>_top</code>: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as <code>_self</code>.</li>
- </ul>
- </dd>
-</dl>
-
-<h2 id="Usage_notes">Usage notes</h2>
-
-<p>If multiple <code>&lt;base&gt;</code> elements are specified, only the first <strong>href</strong> and first <strong>target</strong> value are used; all others are ignored.</p>
-
-<h2 id="Examples">Examples</h2>
-
-<pre class="brush: html">&lt;base href="http://www.example.com/page.html"&gt;
-&lt;base target="_blank" href="http://www.example.com/page.html"&gt;
-</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'semantics.html#the-base-element', '&lt;base&gt;')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td>No change since last snapshot.</td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', 'document-metadata#the-base-element', '&lt;base&gt;')}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td>Specified the behavior of <code>target</code></td>
- </tr>
- <tr>
- <td>{{SpecName('HTML4.01', 'struct/links.html#h-12.4', '&lt;base&gt;')}}</td>
- <td>{{Spec2('HTML4.01')}}</td>
- <td>Added the <code>target</code> attribute</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Edge</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoDesktop("1.0")}} [1]</td>
- <td>{{CompatVersionUnknown}} [2]</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatGeckoMobile("1.0")}} [1]</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Support of relative URIs for <code>href</code> was added in Gecko 2.0 (Firefox 4.0)</p>
-
-<p>[2] Before Internet Explorer 7, <code>&lt;base&gt;</code> could be positioned anywhere in the document and the nearest value of <code>&lt;base&gt;</code> was used. Support for relative URLs has been removed in Internet Explorer 8</p>