How to open a HTML a link in a new tab?


I coded this link and I want to open it in a new window or tab if the user click the link. Is this possible in HTML without using JavaScript?

<a href="" title="Google search">Search</a>
Web pages Software Question created: 2020-05-05 06:13 superMarki


Simply add a new attribute called target="_blank" to your a HTML element. This will open the link in a new window or in a new tab if the browser supports tabs. 

<a target="_blank" href="" title="Google search">Search</a>
answered 2020-05-05 06:15 ValdiBoom