jump

HTML: The Markup Language Reference

basebase URL # T

The base element specifies a document-wide base URL for the purposes of resolving relative URLs, and a document-wide default browsing context name for the purposes of following hyperlinks.

Permitted contents #

empty (void element)

Permitted attributes #

global attributes
Any attributes permitted globally.
href = URL potentially surrounded by spaces #
The base URL for the document.
target = browsing-context name or keyword NEW #
A browsing context name or keyword for use in following hyperlinks.
Any string that is either of the following:

Tag omission #

The base element is a void element. A base element must have a start tag but must not have an end tag.

Permitted parent elements #

head

DOM interface #

interface HTMLBaseElement : HTMLElement {
           attribute DOMString href;
           attribute DOMString target;
};