# base

Defines the base URL for all relative links of a web page. Should be placed in the <head>.

Example: Copy

<base href="http://htmlreference.io">
<a href="/element/base">The HTML base element</a>
<!-- This will be an absolute link to http://htmlreference.io/element/base -->

href

Defines the base target of all links of the web page.

"http://htmlreference.io"

You can pass an absolute URL.

target

Defines in which tab or window the links of the web pages will show up.

"_blank"

Opens in a new browsing context, which is usually a new tab.

"_self"

Opens in the current tab.

"_parent"

Opens in the parent browsing context, or _self is there is none.

"_top"

Opens in the top browsing context, or _self is there is none.