Web development
Make new-tab links explicit
When a link genuinely needs a new tab, use target blank and an explicit noopener relationship. Let the link text indicate the external destination so readers can anticipate the navigation.
Worked example
HTML example · save as example.html and open in a browser
<a href="https://developer.mozilla.org/" target="_blank" rel="noopener">Read the MDN reference (new tab)</a>How it works
Noopener prevents the opened page from receiving a usable window.opener reference through that relationship. Modern browsers often provide this protection implicitly for target blank, but writing it explicitly documents the intention and supports auditing.
Limits and mistakes
Opening every link in a new tab can disrupt navigation. Noreferrer has a different additional effect: it suppresses referrer information. Add it only when that behavior is wanted, since it can affect destination analytics.
Check the result
Activate the link and confirm it opens the intended destination. Check the attributes in the rendered document, especially if a content system rewrites external links.
Sources
Reference documentation for the behavior used in this guide: