Answers for "how to open a new tab by clicking an img in html"

3

open new tab when clicking link html

<!-- add target="_blank" to open new tab when link is clicked [in HTML]-->
<a href="YourLink" target="_blank">YourText</a>
Posted by: Guest on January-07-2021
-1

open image in new tab html

<a href="IMAGE_URL" target="_blank">
  <img alt='img_path' class='img-40 rounded-circle' src='IMAGE_URL' />
</a>
Posted by: Guest on May-29-2021

Code answers related to "how to open a new tab by clicking an img in html"

Browse Popular Code Answers by Language