[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/HTML/Reference/Elements/base [Back]  [Original]

<base> - HTML: Hypertext Markup Language | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

<base>

Baseline Widely available *

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 7.

* Some parts of this feature may have varying levels of support.

HTML <base> URL URL . <base> .

URL document.baseURI . <base> baseURI location.href.

.
. .
.
<base> <head> .
ARIA
ARIA
DOM HTMLBaseElement

In this article

.

: , URL <base> .

  • href

    • : URL URL. URL .
  • target

    .

    • _self (): .
    • _blank: , .
    • _parent: , . _self .
    • _top: . . _self .

<base>

<base> href target .

<a href="#some-id">, <base> , URL HTTP . ,

  1. <base href="https://example.com">
  2. <a href="#anchor">Anker</a>
  3. 2 https://example.com/#anchor .

Open Graph

Open Graph <base> URL .

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

html
<base href="http://www.example.com/page.html" />
<base target="_blank" />
<base target="_target" href="http://www.example.com/page.html" />

Specification
HTML
# the-base-element


Web Proxy Viewer  |  New URL  |  Original Page