My image won't open why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

My image won't open why?

<html><body><img src="animeX_660076.jpeg"><a href= "">click here</a></img></body></html>

27th Apr 2019, 8:40 PM
game finy
3 Answers
+ 12
Hey there 😃 <img> tags do not have closing tags. I see you are trying to allow a user to click on the image to open it up. Since you are linking to a page, place the <img> inside the <a> tag: <a href="animeX_660076.jpeg"> <img src="animeX_660076.jpeg" alt=""> </a> Hope it helps 😃😃
27th Apr 2019, 8:58 PM
Edwin Pratt
Edwin Pratt - avatar
+ 7
game finy That is almost correct 🙂👏 Just add "Click here" right inside the <a> tag: <a herf="animeX_660079.jpeg">Click here: <br> <img src="animeX_660079.jpeg"> </a> ??.
27th Apr 2019, 9:18 PM
Edwin Pratt
Edwin Pratt - avatar
+ 2
<a herf="animeX_660079.jpeg"><img src="animeX_660079.jpeg" click here=""></a> ??.
27th Apr 2019, 9:13 PM
game finy