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.


<base href="URI" / >



HTML base element:


›› go to examples ››