To add the hyperlink on the image in html, we will add the <a>
element to cover the <img>
element. To specific the hyperlink, we will use href
attribute to point it to the specific site. Let me show you how I pointed it to my website.
<a href="https://blog.jorcus.com">
<img src="image.jpg" alt="Jorcus Image Link Tutorial">
</a>
I strongly recommend you try it on your own. We also have a more complete tutorial that help you get a start with hyperlink.