Skip to content

Help us create more tutorials! Make a donation using the Donate button or become a member using the button below to hide this banner and track your progress.

Open link in new tab – HTML

Length: 10 minutes



<a target="_blank" href="">Link text</a>


To force the browser to open a link in a new tab, add the target attribute with the value _blank.

<a target="_blank" href="">Link text</a>

Note: It’s possible the link might open in a new window instead of a new tab based on the user’s browser settings.


Try recreating the HTML code from the Demo section. Then try customizing the text inside the link.


The Anchor element on MDN

Back to: HTML Course > HTML Links