base

The base HTML element represents 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.

Syntax

HTML

<base attribute-name="attribute-value"></base>

Attributes

Global

Name Value Description
href URI Base URL for the document
target browsing-context name or keyword browsing context name or keyword for use in following hyperlinks

Examples

href

target

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu