Back to TILs.

Calmcode TIL

New Tab logoNew Tab

There are two links below. They are the same but also different.

  • This one opens up calmcode in the current browser tab.
  • This one opens up calmcode in a new browser tab.

This difference is caused by the target setting on the <a> element.

<a href="https://calmcode.io" target="_blank">Click here.<a>

It's a small change that can make a huge difference to the user experience. Many users aren't aware that you can open a link by CMD/CTRL-clicking a link.


Back to main.