target=”blank” is it a secret that most of web developers don’t know about? | HTML trick

zahra kaabi
2 min readJul 7, 2021

--

You may think i just misprinted it and i forgot the underscore!

Do you wanna know more about the redirection of links?& How to improve the user experience of your website?

Well, as we are used to the target=”_blank” with the underscore which opens the giving links in the website in a new tab every time you click on as you can see in the GIF below.

Now imagine you have a lot of anchor links, may you ask yourself why do i need so many tabs? why it can’t be even more user friendly? You don’t want people to keep having all these tabs open, you just want to serve the purpose of viewing whatever they need to see and then being able to return back to the same place.

Here’s comes the role of target=”blank” where the blank part is just a name. It could be anything. It could target=”zahra” as an exemple. This tag doesn’t open the clicked link in a new tab each time. Rather after opening a new tab on first-clicked link you’ll get switched to the same tab as explained in the GIF below.

So that one tab will serve as the space for showcasing all those websites, which makes it extremely user friendly, yet really not a lot of people knows about it.

--

--