HTML4 HTML5
The <base> tag belongs to document metadata (information about the document) and is placed alongside other metadata inside the HEAD section. It specifies the base URL for all relative URLs contained within the document.
The opening tag is required; no closing tag exists.
href="..." - Base URL against which all relative URLs in the document are specified.
target="..." - Default location to open target links:
<!DOCTYPE html>
<html>
<head>
<base href="http://alg24.com/images/" target="_blank">
</head>
<body>
<p><img src="wstecz.png" width="100" height="25" alt="Algorithm"> - by providing a relative path, we load the image located at "<a href="wstecz.png">http://alg24.com/images/wstecz.png</a>" in a new window.</p>
<p><a href="http://alg24.com">alg24.com</a> - This link opens our home page in a new window because the target argument inside the base tag in HEAD is set to "_blank".</p>
</body>
</html>