HTML: Setting a target window

This entry is part 24 of 34 in the series HTML

By default, a hyperlink opens the referenced page in the same browser tab.

But in some cases you might want the hyperlink to open in a new tab for window.

<!DOCTYPE html>
<html>
<head lang='en'>
    <meta charset='UTF-8'>
    <title>Link paths</title>
</head>

<a href='https://codecrawl.com/code/ushuaia.html' target='_blank'><h2>Ushuaia, South America (blank)</h2></a>

<a href='https://codecrawl.com/code/ushuaia.html'><h2>Ushuaia, South America (default)</h2></a>

</body>
</html>

Series Navigation<< HTML: Relative and absolute paths
HTML: Hyperlinks to anchors >>