Latest news, food, business, travel, sport, Tips and Tricks...

How to Open Links in New Tab in HTML

How to Open Links in New Tab in HTML

Opening your links whether internal or external in a separate tab or on a new window has lots of benefits.

When your page links open on a new tab or window:

More: What are internal and external links?

It allows your visitors to read the linked contents on a new window without overlapping the current page.

Thereby your reader can come back to its original article which he was reading.

More: 5 Evergreen Content Marketing Tips For Every Marketers

Keeps your visitors on your site to stay longer and this improves your metrics like, it reduces your bounce rates, conversions, and page views. So,

How to Open Links in New Tab in HTML


 <a href="#" target="_blank">Your Words</a>  

Here what a href="#" does?

It specifies the link URL, change the # tag with your own URL or whatever link you want to.

Here what target="_blank does?

_blank: the only currently relevant value of target is _blank. The other values of the target were used to specify specific frames. 

If no target is specified, the link will open in the current tab or window, unless you or your browser specifies otherwise.

Like the below example:

 <a href="#">Your Words</a>  

The target attribute specifies where the linked document will open when the link is clicked. The default is the current window.

If target=”_blank”. The link will open in a new tab or on a new window.

And Your Words refers to whatever content you want to add.

Hope this has helped you, or if you have found any difficulties, comment below and I will get back to you.

, ,