Open Links in a New Tab or Window

Use target="_blank" when a link intentionally needs to open in a new browsing context. Do not make every link open a new tab; unexpected new tabs can disrupt navigation and accessibility.

<a href="https://example.com/" target="_blank" rel="noopener">Open example in a new tab</a>

Common target values Top ↑

  • _self: current browsing context, the normal default.
  • _blank: a new browsing context.
  • _parent and _top: mainly relevant to embedded/frame contexts.

Why rel="noopener" is useful Top ↑

Modern browsers generally protect target="_blank" links from controlling the opener, but explicitly adding rel="noopener" makes the intention clear and is safe for compatibility.

Named browsing contexts Top ↑

A custom target name such as target="reports" can reuse the same named tab/window instead of opening a new one on every click. Use this only when the behavior is intentional and understandable.

Tell users when it matters Top ↑

If opening a new tab is important or unexpected, indicate it in the link text or accessible label. Normal site navigation is usually best left in the current tab.

HTML hyperlinks Links within a page





plus2net.com







kol

23-01-2012

its really good



✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer