Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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 beginners

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,



More: 15 Best and easy ways to fix high bounce rates

How to Open Links in New Tab in HTML


Syntax:
 Your Words  


Demo

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:


 Your Words  

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.





This post first appeared on Wonder Krish, please read the originial post: here

Share the post

How to Open Links in New Tab in HTML

×

Subscribe to Wonder Krish

Get updates delivered right to your inbox!

Thank you for your subscription

×