I’m a small developer. I like HTML. However, when i create a link in the website and click it, it closes the first tab and opens a new one. Here is the code that i wrote:
<a href="google.com">Google</a>
Can someone help me and make it so that when i press the link it opens a new tab and it doesn’t close the actual tab? Thank you for helping me.
>Solution :
Hi this is the automatic function of this tag, as it is supposed to replace the current website and open the next one, as you may notice happens with links on other webpages, if you want the link to open in a new tab us the target attribute (which I saw was in another answer, but with less explanation) and set it to _blank like below.
<a href="google.com" target="_blank">Google</a>