(w) smolweb

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. It is a child of the head element.

Attributes

Specific attributes

href is 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 contains a keyword or author-defined name of the default browsing context to show the results of navigation from a or form elements without explicit target attributes. The following keywords have special meanings:

Global attributes

role="[semantic-role]"

accesskey="[key]"

autofocus

class="[classname]"

dir="[auto/ltr/rtl]"

hidden

id="[identifier]"

itemid="[global-identifier]"

itemprop="[property-name]"

itemscope itemtype="[url of the vocabulary]"

lang="[language-code]"

tabindex="[num index]"

title="[Title]"

Example

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