HTML tag to Open Link New Tab

Ref: freeCodeCamp tutorial

It's easy to use HTML to open a link in a new tab. You just need an anchor (<a>) element with three important attributes:

  • The href attribute set to the URL of the page you want to link to
  • The target attribute set to _blank, which tells the browser to open the link in a new tab/window, depending on the browser's settings
  • The rel attribute set to noreferrer noopener to prevent possible malicious attacks from the pages you link to


<a href="" target="_blank" rel="noopener noreferrer"></a>