A reader may need to open a reference while keeping a set of instructions nearby. An HTML link can open the destination in a new tab and leave the original page available.
The browser chooses whether to open the destination in a tab or a window. A short notice in the link text helps readers anticipate the switch.
A destination with a reference to its opener can navigate the original page away. The noopener link relationship keeps the browser from giving the destination that reference. You need a working local preview of the page in desktop Chrome.
Steps to make an HTML link open in a new tab:
- Open the HTML file or template that outputs the link in your text editor.
The link in
links.htmlpoints to a second page namedreference.htmlin the same directory. The same edit applies when your existing link points to a full URL. - Set the existing anchor's
targetto_blankand itsrelto includenoopener, preserving its link text, destination, and other attributes.<a href="reference.html" target="_blank" rel="noopener"> Read the reference (opens in a new tab) </a>
The
hrefvalue still names the same destination, and the text in parentheses tells readers what to expect. Thetargetvalue_blankasks for a separate tab or window. Current browsers implynoopenerfor_blanklinks unlessopeneris specified. Keepingnoopenerexplicit makes the intended behavior visible in the source. In an existingrelvalue,noopenerjoins the other space-separated values and takes the place ofopenerif present. - Save the edited HTML file.
- Open the saved page from your local site in desktop Chrome.

- Right-click the link on the page.

- Choose Inspect from the link's context menu.

- Verify that the selected anchor in Elements matches the opening tag you saved.
The anchor should show your destination in
href, target="_blank", andnoopenerinrel.
- Click the link normally in the page above or beside DevTools.

- Verify that the destination loads in a new tab beside the original page.
Chrome should show the destination URL and its content in a new tab. In the example, Project reference loads and Project links stays open. If the destination replaces the original tab or shows an error page, the check failed.