make a link and when click on link it open in new tab in html code example
Example 1: how to make href open in a new tab link html
<a href="https://codegrepper.com" target="_blank" rel="noopener noreferrer"> </a>
Example 2: open new tab when clicking link html
<!-- add target="_blank" to open new tab when link is clicked [in HTML]-->
<a href="YourLink" target="_blank">YourText</a>