Solved: how to open link in new tab

The main problem related to how to open links in new tabs is that it can be difficult to find the right spot on a web page to insert the link.


<a href="http://www.google.com" target="_blank" rel="noopener">Google</a>

This code line creates a hyperlink to Google. When clicked, the link will open in a new tab or window.

Force links to new tabs

Force links to new tabs in HTML are created by using the link tag with the href attribute set to the URL of the new tab.

Related posts:

Leave a Comment