The <base>
tag can be used to alter all the links and images on the page. It also adds the ability to specify a default target
for links.
For example:
<html>
<head>
<base href="https://example.com/" target="_blank">
</head>
<body>
<a href="my-page">This opens example.com/my-page in a new tab.</a>
<img src="my-image.gif" alt="This loads example.com/my-image.gif">
</body>
</html>
<head>
<base href="https://example.com/" target="_blank">
</head>
<body>
<a href="my-page">This opens example.com/my-page in a new tab.</a>
<img src="my-image.gif" alt="This loads example.com/my-image.gif">
</body>
</html>