A href new tab
You're looking to open a link in a new tab when a user clicks on it!
In HTML, you can achieve this by adding the target
attribute to the a
tag and setting its value to _blank
. Here's an example:
<a rel="nofollow" target="_blank" href="https://www.example.com" target="_blank">Open in new tab</a>
This will open the link in a new tab when the user clicks on it.
If you want to open the link in a new tab and also specify the title of the tab, you can use the target
attribute with the _blank
value and also add the title
attribute to specify the title of the tab:
<a rel="nofollow" target="_blank" href="https://www.example.com" target="_blank" title="New Tab">Open in new tab</a>
This will open the link in a new tab with the specified title.
Note that the target
attribute can also take other values, such as _self
(which opens the link in the same tab), _parent
(which opens the link in the parent frame), or _top
(which opens the link in the full body of the window). However, _blank
is the most commonly used value for opening a link in a new tab.