HTML: The Markup Language

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 content #

empty (void element)

Permitted attributes #

Descriptions for attributes specific to this element #

href = URI
The base URL for the document.
target = browsing-context name or keyword NEW
A browsing context name or keyword for use in following hyperlinks.

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 #


DOM interface #

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