Performance: Opening links in new tab
This affects user interaction responsiveness and perceived page load speed when opening external content.
<a href="https://example.com" target="_blank" rel="noopener noreferrer">Visit Example</a>
<a href="https://example.com">Visit Example</a>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Link opens in same tab | Minimal | 0 | 0 | [!] OK but blocks interaction |
| Link opens in new tab with target="_blank" | Minimal | 0 | 0 | [OK] Keeps page responsive |
<a> tag makes the link open in a new browser tab?target attributetarget attribute in an <a> tag controls where the linked document opens.target="_blank" tells the browser to open the link in a new tab or window.target="_blank" to open link in new tabrel="noopener noreferrer" for security<a href="https://openai.com" target="_blank">Visit OpenAI</a>
target attribute valuetarget="_blank" instructs the browser to open the link in a new tab or window.target="_blank" in a new tab by default.<a href="https://example.com" target="blank">Example</a>
target attribute valuerel="noopener noreferrer" is recommended for security, the main error preventing new tab opening is the wrong target value.target attribute is needed.target="_blank" and rel="noopener noreferrer" for security and to open in new tabs.Pass the test and this pattern moves unknown