The base element can be used to specify the base URI for other links within the document. For instance it can specify the absolute path where all images that site needs cab be loaded from.

It affects only the URIs in the document (page) where the element appears.

Base is an empty element, therefore the closing tag is forbidden.

Syntax:

<base href="URI" / >

Attributes:

Example

HTML base element:

 

›› go to examples ››