How to Open Link in New Tab with Anchor Tag Target Attribute

How to Open Link in New Tab or Window

To open link in new tab, you need to use the target attribute with the value target="_blank".

This is very useful for your website visitors if you want them to click on the link to open the new website. By doing this, you will not lose the visitors to leave your website. To engage your visitors more on your website, you have to open link in new tab.

Because you don’t want to lose the visitors and leave your website. You want your visitors to engage with your website. Therefore, you have to open the external links to the new window.

Use of Target Attribute of Anchor Tag hyperlink Href

Suppose you want to open some of your website links in the new window. you have to write the HTML code something like this:-

Test it Live

Output

How to add unordered list in HTML

What are the Benefits of Using the “_blank” Attribute

I am using this feature of anchor hyperlink for all my external links to open link in new tab of the browser.  These links are used to define the nature of your website.  You can open the links of your own website in the new tab or the same tab.  

By opening your website link in the same window, you actually creating Internal links. This is the best way to open links in new tab and rank higher in Google and other search engines.

Beginners always do the same mistake of opening the external link in the same window. They don’t know this is not the best-ranking factor for their website. If you are an affiliate marketer and want your customers to return to your website. You have to use an anchor link to open links in new tab.

When you think of developing a page of your website, you need to use some outbound links. These links can be the official websites that match with the content of your writing.  

If you are not doing this, you will not let Google to easily understand your content. To add outbound links to your web page, you have to learn this and open the outbound link on the clicking of the link.

Open Anchor Links in the Same Window or Tab

Have you ever thought of your visitors to engage with your website? If yes, then, first of all, you need to create content and interlink them with each other. Interlink mean confirm you the better engagement of your visitor.

You can open them in the same or new window one by one depending upon the overall interest of the visitor. The user visits each page with the internal links present on the web page. Opening internal links in the same tab give a better user experience to read each post one by one.

Use of Target Attribute of Anchor Tag Hyperlink Href

To open a website link in the same window, you have to write the code something like this:-

Test it Live

Output

How to add anchor hyperlinks in HTML

While doing some research with the user experience, I found links open in the same window for a long time to give you returning customers for the long term. If you have enough content on your website for visitors, you can do this too.

Related Posts

2 replies on “How to Open Link in New Tab with Anchor Tag Target Attribute”

  1. What I do is add the _blank to the outbound links I value the least. I am ok with opening a quality relevant outbound link (affiliate link, partner) in the same window.

Comments are closed.