You should add the target="_blank" and rel="noopener noreferrer" in the anchor tag.

For example:

<a target="_blank" rel="noopener noreferrer" href="http://your_url_here.html">Link</a>

Adding rel="noopener noreferrer" is not mandatory, but it's a recommended security measure. More information can be found in the links below.

Source:

  • MDN | HTML element <a> | attribute target
  • About rel=noopener
  • Opens External Anchors Using rel="noopener"
Answer from Nathan on Stack Overflow
๐ŸŒ
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
๐ŸŒ
W3Schools
w3schools.com โ€บ html โ€บ html_links.asp
HTML Links Hyperlinks
You can read more about file paths in the chapter HTML File Paths. ... Use the mailto: scheme inside the href attribute to create a link that opens the user's email program
๐ŸŒ
W3Schools
w3schools.com โ€บ jsref โ€บ met_win_open.asp
Window open() Method
Animation Events Clipboard Events Drag Events Events Focus Events HashChange Events Input Events Keyboard Events Mouse Events PageTransition Events PopState Events Progress Events Storage Events Touch Events Transition Events Ui Events Wheel Events HTML Event Properties ยท altKey (Mouse) altKey (Key) animationName bubbles button buttons cancelable charCode clientX clientY code ctrlKey (Mouse) ctrlKey (Key) currentTarget data defaultPrevented deltaX deltaY deltaZ deltaMode detail elapsedTime elapsedTime eventPhase inputType isTrusted key keyCode location metaKey (Mouse) metaKey (Key) newURL oldURL offsetX offsetY pageX pageY persisted propertyName relatedTarget relatedTarget screenX screenY shiftKey (Mouse) shiftKey (Key) target targetTouches timeStamp touches type which (Mouse) which (Key) view HTML Event Methods
๐ŸŒ
W3Schools
w3schools.com โ€บ tags โ€บ att_a_target.asp
HTML a target Attribute
<!--> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <data> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <h1> - <h6> <head> <header> <hgroup> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <label> <legend> <li> <link> <main> <map> <mark> <menu> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <
๐ŸŒ
W3Schools
w3schools.com โ€บ cssref โ€บ css3_pr_target-new.php
CSS target-new property
The target-new property specifies whether new destination links should open in a new window or in a new tab of an existing window. Note: The target-new property only works if the target-name property creates a new tab or a new window.
๐ŸŒ
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 - 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.
Find elsewhere
๐ŸŒ
WordPress
wordpress.org โ€บ support โ€บ topic โ€บ how-to-write-a-custom-html-link-to-open-in-new-tab
How to write a Custom HTML Link to open in new tab | WordPress.org
July 21, 2024 - In this case, it sounds like youโ€™re missing the Target=blank attribute. This will make a link to open in a new tab/window. Read this post to learn how to use the HTML links: https://www.w3schools.com/html/html_links.asp
๐ŸŒ
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 / tab, add target="_blank" inside the <a> tag: <a href="../html-link.htm" target="_blank">Open page in new window</a>
๐ŸŒ
W3Docs
w3docs.com โ€บ html
How to Open Hyperlink in a New Window
How to open hyperlink in a new tab using the target="_blank" attribute. Learn also how to do that by using JavaScript window.open function. See examples.
๐ŸŒ
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 - However, to open a link in a new tab or window, you adjust the target attribute. target attribute: Controls how the browser handles the linked document or linked page. href attribute specifies: Tells your HTML parser exactly which linked URL ...
๐ŸŒ
Computer Hope
computerhope.com โ€บ issues โ€บ ch000050.htm
How to Create a Link That Opens a New Web Page Window or Tab
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.
๐ŸŒ
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 - This tutorial introduces how to open links in a new tab in HTML. Learn effective methods using the target attribute and JavaScript, along with best practices for enhancing user experience and maintaining security. Discover how to implement these techniques seamlessly in your web projects.
๐ŸŒ
HTML.com
html.com โ€บ attributes โ€บ a-target
How To Use The <a> To Make Links & Open Them Where You Want! ยป
January 11, 2019 - 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 linked document will open in a new tab or (on older browsers) a new window.
๐ŸŒ
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 ...
๐ŸŒ
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 - Insert the hyperlink using an <a> tag, and set the href attribute to the URL you want to link to. Add the target="_blank" attribute to the <a> tag. This tells the browser to open the link in a new tab when clicked.