From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/html/element%2Fbase.html | 117 --------------------------------------- 1 file changed, 117 deletions(-) delete mode 100644 devdocs/html/element%2Fbase.html (limited to 'devdocs/html/element%2Fbase.html') diff --git a/devdocs/html/element%2Fbase.html b/devdocs/html/element%2Fbase.html deleted file mode 100644 index dff26f05..00000000 --- a/devdocs/html/element%2Fbase.html +++ /dev/null @@ -1,117 +0,0 @@ -

<base>: The Document Base URL element

-

The <base> HTML element specifies the base URL to use for all relative URLs in a document. There can be only one <base> element in a document.

A document's used base URL can be accessed by scripts with Node.baseURI. If the document has no <base> elements, then baseURI defaults to location.href.

Content categories Metadata content.
Permitted content None; it is a void element.
Tag omission There must be no closing tag.
Permitted parents A <head> that doesn't contain another <base> element.
Implicit ARIA role No corresponding role
Permitted ARIA roles No role permitted
DOM interface HTMLBaseElement
-
-

Attributes

-
-

This element's attributes include the global attributes.

Warning: If either of the following attributes are specified, this element must come before other elements with attribute values of URLs, such as <link>'s href attribute.

href

The base URL to be used throughout the document for relative URLs. Absolute and relative URLs are allowed. data: and javascript: URLs are not allowed.

target

A keyword or author-defined name of the default browsing context to show the results of navigation from <a>, <area>, or <form> elements without explicit target attributes. The following keywords have special meanings:

  • -_self (default): Show the result in the current browsing context.
  • -_blank: Show the result in a new, unnamed browsing context.
  • -_parent: Show the result in the parent browsing context of the current one, if the current page is inside a frame. If there is no parent, acts the same as _self.
  • -_top: Show the result in the topmost browsing context (the browsing context that is an ancestor of the current one and has no parent). If there is no parent, acts the same as _self.
-
-

Usage notes

- -

Multiple <base> elements

-

If multiple <base> elements are used, only the first href and first target are obeyed — all others are ignored.

-

In-page anchors

-
-

Links pointing to a fragment in the document — e.g. <a href="#some-id"> — are resolved with the <base>, triggering an HTTP request to the base URL with the fragment attached.

For example, given <base href="https://example.com/"> and this link: <a href="#anchor">To anchor</a>. The link points to https://example.com/#anchor.

-
-

Open Graph

-
-

Open Graph tags do not acknowledge <base>, and should always have full absolute URLs. For example:

-

html

-
<meta property="og:image" content="https://example.com/thumbnail.jpg" />
-
-
-
-

Examples

-
-

html

-
<base href="https://www.example.com/" />
-<base target="_blank" />
-<base target="_top" href="https://example.com/" />
-
-
-

Specifications

-
- - -
Specification
HTML Standard
# the-base-element
-

Browser compatibility

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on IOSSamsung Internet
base1121
YesBefore Internet Explorer 7, <base> can be positioned anywhere in the document and the nearest value of <base> is used.
1534.41841421.0
href1121Yes1534.41841421.0
target1121Yes1534.41841421.0
-

- © 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base -

-
-- cgit v1.2.3