What value of the 'target' attribute on an <a> tag opens the link in a new tab?

The story behind the answer

The value of the target attribute that requests a link open in a new browsing context is _blank.

For example, <a href="https://example.com" target="_blank">Example</a> tells the browser not to reuse the current page’s browsing context. In everyday desktop browsers, that usually appears as a new tab, but the browser or user’s settings may instead open it in a new window. Therefore, _blank is the canonical quiz answer even though HTML technically describes the result more generally than “new tab.”

The other listed values reuse an existing context: _self loads the destination in the current frame or tab, _parent targets the parent browsing context, and _top targets the top-level browsing context. These values matter most when pages use frames or iframes.

A related security detail is rel="noopener". Modern browser behavior generally prevents a _blank link from giving the opened page access to window.opener by default, but explicitly using rel="noopener" remains a clear defensive practice. _blank also does not guarantee a popup or bypass browser popup policies.

Source: Wikipedia · fact-checked Aug. 2026

Add question to a list

Choose a list to keep this question in: