Set the target attribute of the link to _blank:

<a href="#" target="_blank" rel="noopener noreferrer">Link</a>

For other examples, see here: http://www.w3schools.com/tags/att_a_target.asp


Note

I previously suggested blank instead of _blank because, if used, it'll open a new tab and then use the same tab if the link is clicked again. However, this is only because, as GolezTrol pointed out, it refers to the name a of a frame/window, which would be set and used when the link is pressed again to open it in the same tab.


Security Consideration!

The rel="noopener noreferrer" is to prevent the newly opened tab from being able to modify the original tab maliciously. For more information about this vulnerability read the following articles:

  • The target="_blank" vulnerability by example
  • External Links using target='_blank'
Answer from SharkofMirkwood on Stack Overflow
Discussions

How to Open Page in New Tab
Need to add “target=“_blank” after your href attribute More on reddit.com
🌐 r/HTML
4
1
November 21, 2024
How to open Custom HTML Link to open in new tab | WordPress.com Forums
You can make a HTML link open in a new tab by adding the target=”_blank” attribute. You should insert this after the link address. Here is an example link that would open the WordPress.com homepage in a new tab: More on wordpress.com
🌐 wordpress.com
December 2, 2021
Is there a way to open links in a new tab without switching to that tab?
middle click More on reddit.com
🌐 r/Enhancement
28
14
April 9, 2012
How to force the browser to open any Link in a new tab just by left click, especially for YouTube?
Right click on a link and select open link in new tab. There's also Settings -> General -> Tabs ... so that You can check more additional options. On top of that, there's an target html attribute for tag which governs where/how the link will be opened. will force link to be opened in new tab/window. While target="_self" will open link in current window. So, if developer has used those attributes and placed "_self" as values for those attributes, right-click -> open in new tab will work. More on reddit.com
🌐 r/firefox
11
0
January 4, 2023
🌐
CoreUI
coreui.io › blog › how-to-open-link-in-a-new-tab-in-html
How to Open Link in a New Tab in HTML? · CoreUI
February 26, 2025 - href attribute specifies: Tells your HTML parser exactly which linked URL to fetch. rel attribute: Helps define the relationship between the original page and the newly opened tab, often used for security measures. When you want to open the linked document in a new tab, you typically use target="_blank". This target value instructs the browser to create a new page, also known as a new tab or window. For example:
🌐
freeCodeCamp
freecodecamp.org › news › how-to-use-html-to-open-link-in-new-tab
How to Use HTML to Open a Link in a New Tab
September 8, 2020 - If you click on the link above, the browser will open the link in the current window or tab. This is the default behavior in every browser. To open a link in a new tab, we'll need to look at some of the other attributes of the anchor element's other attributes.
🌐
Delft Stack
delftstack.com › home › howto › html › html open link in new tab
How to Open Link in New Tab in HTML | Delft Stack
March 11, 2025 - In this example, a button is created that, when clicked, triggers a JavaScript function. This function uses window.open() to open the specified URL in a new tab. The second parameter, "_blank", ensures that the link opens in a new tab rather than the current one.
Find elsewhere
🌐
W3Docs
w3docs.com › html
How to Open Hyperlink in a New Window
In the given example, when the visitor clicks on the hyperlink, it opens in a new window or tab. There is another way of opening a hyperlink in a new tab by using the JavaScript window.open function with the onclick event attribute like this: ...
🌐
GeeksforGeeks
geeksforgeeks.org › html › how-to-open-a-hyperlink-in-another-window-or-tab-in-html
How to Open a Hyperlink in Another Window or Tab in HTML? - GeeksforGeeks
November 23, 2024 - In HTML, this can be easily achieved using the 'target' attribute of the anchor ('<a>') tag. By setting 'target="_blank"', you instruct the browser to open the linked document in a new tab or window.
🌐
RapidTables
rapidtables.com › web › html › link › html-link-new-window.html
HTML link in a new window
In order to open a link in a new window, add Javascript command onclick="window.open('text-link.htm', 'name','width=600,height=400') inside the <a> tag: <a href="../html-link.htm" target="popup" onclick="window.open('../html-link.htm','name','width=600,height=400')">Open page in new window</a>
🌐
Educative
educative.io › answers › how-to-open-a-link-in-a-new-tab-with-html-and-javascript
How to open a link in a new tab with HTML and JavaScript
The value of the target attribute _blank opens the link in a new tab. The text Educative is the link text between the opening <a> tag and the closing </a> tag. Enhance your understanding of HTML links with the help of this project, "Creating ...
🌐
W3Schools
w3schools.com › tags › tryit.asp
W3Schools online HTML editor
The W3Schools online code editor allows you to edit code and view the result in your browser
🌐
Computer Hope
computerhope.com › issues › ch000050.htm
How to Create a Link That Opens a New Web Page Window or Tab
1 month ago - Learn how to create HTML links that open in new windows or tabs by using the target=_blank attribute for improved user navigation on your web page or site.
🌐
DhiWise
dhiwise.com › post › html-open-link-in-new-tab-improve-user-navigation
How to Open Links in a New Tab Safely in HTML
September 12, 2025 - This guide explains the rel="noopener noreferrer" security practice, preventing tabnabbing, with practical HTML and JavaScript examples to improve user experience without risking vulnerabilities.
🌐
WordPress.com
wordpress.com › forums › topic › how-to-open-custom-html-link-to-open-in-new-tab
How to open Custom HTML Link to open in new tab | WordPress.com Forums
December 2, 2021 - You can make a HTML link open in a new tab by adding the target=”_blank” attribute. You should insert this after the link address. Here is an example link that would open the WordPress.com homepage in a new tab:
🌐
Codedamn
codedamn.com › news › frontend
Using HTML to open link in new tab
June 6, 2023 - For example, target="codedamnWindow" will open the link in a new tab or window with the name "codedamnWindow". If a tab or window with that name already exists, the link will open in that tab or window.
🌐
Quora
quora.com › How-do-you-create-a-hyperlink-that-opens-in-a-new-tab
How to create a hyperlink that opens in a new tab - Quora
Free 30-day trial! ... The Target attribute specify where to open the linked document. <a href=”#” target=”_blank”>Your link Name</a> For details of Attributes value HTML a target Attribute.
🌐
freeCodeCamp
freecodecamp.org › news › how-to-open-a-link-in-a-new-tab
How to Open a Link in a New Tab – HTML target blank Attribute Explained
May 31, 2022 - In this example, we are linking to the DevDocs documentation, so the user can stay on their current page and look up a reference on a new tab. You can use the target="_blank" attribute if you want your users to click on a link that opens up ...
🌐
Rip Tutorial
riptutorial.com › open link in new tab/window
HTML Tutorial => Open link in new tab/window
Tables · Text Formatting · Using HTML with CSS · Void Elements · Bulk Insert · Bulk Delete · Bulk Update · Bulk Merge · <a href="example.com" target="_blank">Text Here</a> The target attribute specifies where to open the link.