THE GITHTML FIELD GUIDE

Explain links that open a new browsing context

Prefer ordinary navigation unless a new browsing context is useful, and warn readers when a link intentionally opens one. The warning helps them understand why Back may not return to the document. Treat this as a usability practice, not a claim that every unannounced new-window link automatically violates a particular accessibility criterion.

Understand the access barrier

A reading packet may contain many external references. Forcing each into another context can leave readers with a confusing collection of windows or tabs. An embedded app may also handle external links differently from a desktop browser.

Use a deliberate document pattern

Use clear link text and a short opens in new window indication when that behavior is intentional. Avoid an unexplained icon as the only warning. Keep same-document section links in the existing context.

  1. Choose a new context only when it serves a concrete reading task.
  2. Include a visible warning when the link deliberately requests a new window or tab.
  3. Check how the intended app handles the link and returning to the document.
html
<a href="https://example.com/reference" target="_blank" rel="noopener">Reference (opens in a new window)</a>

Check the actual reading experience

Test the destination and the route back in the actual reading environment. The host application's behavior may override assumptions from the markup.

Make the return journey predictable

A reviewer reading a long report may open a reference to verify one claim and then expect to return to the same paragraph. A forced new tab changes that journey: the browser’s Back command may not lead to the report because the original page is in another context. In a mobile reading app, the reference might instead open an external browser. The same markup can therefore produce different practical navigation experiences.

Prefer letting readers choose a new tab themselves unless preserving the current task provides a clear reason to request one. When requesting a new context, include a concise visible warning with the link’s meaningful destination name. A generic external-link icon may indicate another website without explaining that navigation opens elsewhere. Keep the warning available to assistive technology, and avoid using a title tooltip as its only delivery method.

The example’s noopener relationship concerns the new page’s access to the opener; it is not an accessibility label or a promise that the destination is trustworthy. Review destination trust separately, especially for links embedded in unfamiliar reports. Test one ordinary external link, one intentionally new-context link, and one same-document section link in the target reader. Verify how to return and whether the reading position is retained. If the host application controls external navigation, describe the observed behavior accurately rather than claiming the HTML can enforce a particular tab interface. Do not add new-context behavior to every citation merely because a desktop template happened to do so.

Sources and further reading

AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.

All accessible documentation guides →

Read as MarkdownAll guides

Explain links that open a new browsing context · gitHtml