How to Make a Link Open in a New Tab Using HTML5
So you have a solid website now, and you want to add a link that opens in a new tab? Easy! Just follow these steps!
Using the basic HTML for a link, we can make that link open in a new tab in your browser.
The basic code for any link is:
< a href=”TargetLink.html”>Text That Will Appear</a >
Now if we add one simple thing, we will be able to make your new webpage open in a new tab!
into the code, we will be able to make that link open in a new tab.
Put together, your code should look something like this:
< a href=”TargetLink.html” target=”_blank”>Text That Will Appear</a >
Now your website has links that open in new tabs!