Target Attribute
Target Attribute
By default, the linked page will be displayed in the current browser window.
To change this, you must specify another target for the link.
Example
Use target="_blank" to open the linked document in a new browser window
or tab:
A local link (a link to a page within the same website) is specified with
a relative URL (without the "https://www" part):
Example
<h2>Absolute URLs</h2>
<p><a href="https://www.w3.org/">W3C</a></p>
<p><a href="https://www.google.com/">Google</a></p>
<h2>Relative URLs</h2>
<p><a href="html_images.asp">HTML Images</a></p>
<p><a href="/css/default.asp">CSS Tutorial</a></p>