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>
| attributetarget
- About rel=noopener
- Opens External Anchors Using rel=”noopener”
Related Posts:
- How to create an HTML button that acts like a link
- How to create an HTML button that acts like a link
- How to create an HTML button that acts like a link
- How do I make a hyperlink to a local executable?
- What is href=”#” and why is it used?
- Open URL in same window and in same tab
- html not linking css
- href=”tel:” and mobile numbers
- How to submit a form with JavaScript by clicking a link?
- Navigate to an anchor on another page
- link with target=”_blank” does not open in new tab in Chrome
- My CSS won’t link to my HTML file
- link not working
- HTML Links are not working
- Is there a way to bookmark or link to a section of a page without an anchor?
- Failed to load resource: the server responded with a status of 404 (Not Found) css
- reCAPTCHA ERROR: Invalid domain for site key
- What is the difference between HTML tags and ?
- CSS background-image-opacity?
- Resize image proportionally with CSS?
- Embed image in a
- Automatically pausing html5 video as the ‘next’ button is pressed (javascript/ jquery)
- Can I have an onclick effect in CSS?
- How to style a checkbox using CSS
- default select option as blank
- What is a good alternative to using an image map generator?
- Parse error: Syntax error, unexpected end of file in my PHP code
- Parse error: Syntax error, unexpected end of file in my PHP code
- CSS Background Image Not Displaying
- How can I hide the full url of my website?
- How to check View Source in Mobile Browsers (Both Android && Feature Phone)
- Fix footer to bottom of page
- How to position text over an image in css
- shifting a piece of text down using CSS
- Display Two
s Side-by-Side- Add border-bottom to table row
- How to select a radio button by default?
- Center form submit buttons HTML / CSS
- CSS: Moving the text down a few pixels but keeping the background still?
- What are .tpl files? PHP, web design
- How to use css first-child with :not()
- I am trying to make a simple toggle button in javascript
- Difference between id and name attributes in HTML
- How to draw diagonal lines with css
- Change background image opacity
- How to keep footer at bottom of screen [duplicate]
- How to embed a PDF viewer in a page?
- html div background image not showing up
- Bring element to front using CSS
- Why shouldn’t `'` be used to escape single quotes?
- How to apply style classes to td elements?
- how to overlap two div in css?
- HTML Display Current date
- wordpress contactform7 textarea cols and rows change in smaller screens
- Binding select element to object in Angular
- Dynamic height of div with css
- Removing ul indentation with CSS
- Why write script type=”text/javascript” when the mime type is set by the server?
- RegEx match open tags except XHTML self-contained tags
- Why doesn’t min-height not work on my page?
- Difference between href and data-href in anchor tag in html
- button vs. input type=”button” /. Which to use?
- HTML: How to center align a form
- Can an HTML element have multiple ids?
- How can I change the Bootstrap default font family using font from Google?
- Add stroke around text – on the outside – with css?
- Full Page < iframe >
- Check if a div exists with jquery
- Favicon not working
- CSS max-height not working
- Horizontal list items
- How to make Bootstrap Panel body with fixed height
- word-wrap break-word does not work in this example
- Change navbar text color Bootstrap
- Tooltip on image
- Create a slanted edge to a div [duplicate]
- Override USER AGENT STYLE SHEET – Chrome
- aking a flex item float right
- wp_editor adds HTML entities to the content
- How to escape html code with html allowed
- How to Embed HTML files directly into WordPress
- Thumbnail + Excerpt = loss in word count
- How do you get words to show up at the bottom instead of beside a left-aligned photo? [closed]
- Embed tag length issues
- How to add a class to the element?
- How do I make HTML output work when using the customizer?
- Custom posts with certain html [closed]
- What doctype is considered best practice to use for WordPress?
- Using custom HTML tags to WordPress [closed]
- render html no formatting
- hyphenation not working in Gutenberg editor
- product description text displays above website when in shop page [closed]
- All wordpress site went white blank screen
- Why is WordPress swapping double quotes (“) to curly quotes (“) and how do I stop it from happening?
- Change rel=”noopener noreferrer” to rel=’noopener noreferrer’ (single quote)
- How to add an ID to an existing HTML element?
- Open popup automatically when navigate to the page id
- What are the WordPress’ pre-formatted html components?
- can’t update plugins or wordpress or install new plugins [duplicate]
- How can I add a google play badge to my header and footer?