0
How to assign link to an image?
<a href="http://www.sololearn.com"> <img src="tree.jpg" /> </a>
4 odpowiedzi
+ 4
<a href="" ><img src="" alt=""></a>
+ 2
You must assign a path/image file name to the src attribute of <img>, else you doesn't have an image to click ^^ (just the text of 'alt').
Anyway, the image need to be hosted on internet to work in playground...
0
It works when you actually put a link/src for the image. Here's a random one on the Internet.
<a href="http://www.sololearn.com">
<img src="https://pbs.twimg.com/media/DDIK5LJXYAIusCD.jpg" alt="Image Not Available" />
</a>