How to create a link that opens a new web page window or tab

Updated: 05/21/2018 by Computer Hope

To create a new window or tab when a link is clicked, target="_blank" must be added to the a href tag as shown below.

<a href="" target="_blank">Computer Hope</a>


Below is an example of what the above code would create. If you click on the link below, it opens the Computer Hope homepage in a new window or tab depending on your browser and its settings. Today, all new browsers will open these types of links in new tabs.

Open Computer Hope in a new tab