New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

# base

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

Example: Copy

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

href

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

"https://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.