+ 1
How to put link into img?
How to put link into img?
5 Antworten
+ 4
<a href=""><img src="" alt=""></a>
😂😂
+ 2
Open Link in New Tab:
<img src='(image URL)' onclick="window.open('https://example.com/', '_blank')">
-- OR --
Open Link in Same Tab:
<img src="(image URL)" onclick="window.location.href='https://example.com'">
+ 1
You can't. Put image into the link instead:
<a href="">
<img src="" alt="">
</a>
0
How can I do it in a 1 line?