link in the image html code example
Example 1: linked image html
<a href="https://example.url.com">
<img src="image.png" alt="An image">
</a>
Example 2: how to make an image link on html
<a href="your-hyper-link">
<img src="image.png" alt="HTML img link tutorial" style="width:42px;height:42px;border:0">
</a>