Complete the code to open the link in a new tab.
<a href="https://example.com" [1]>Visit Example</a>
href="_blank" instead of target="_blank".target attribute.The target="_blank" attribute tells the browser to open the link in a new tab.
Complete the code to add security when opening a link in a new tab.
<a href="https://example.com" target="_blank" [1]>Visit Example</a>
rel="nofollow" which is for SEO, not security.rel attribute when using target="_blank".Adding rel="noopener" prevents the new page from accessing the original page via JavaScript, improving security.
Fix the error in the code to correctly open the link in a new tab with security.
<a href="https://example.com" target=[1] rel=[2]>Visit Example</a>
target="_self" which opens in the same tab.rel="nofollow" which is unrelated to security.The target attribute must be "_blank" to open a new tab, and rel="noopener" adds security.
Fill both blanks to open the link in a new tab safely and add a descriptive title.
<a href="https://example.com" [1] [2] title="Go to Example website">Example</a>
rel="nofollow" instead of rel="noopener".target="_blank".Use target="_blank" to open in a new tab and rel="noopener" for security. The title attribute helps screen readers and shows a tooltip.
Fill all three blanks to create a link that opens in a new tab, is secure, and accessible.
<a href="https://example.com" [1] [2] [3]>Example Site</a>
title instead of aria-label for accessibility.rel="noopener" when using target="_blank".Use target="_blank" to open in a new tab, rel="noopener" for security, and aria-label to describe the link for screen readers.