href in image in css code example
Example 1: linked image html
<a href="https://example.url.com">
<img src="image.png" alt="An image">
</a>
Example 2: html image with link
<a href="https://www.google.com"><img alt="Google" src="img.jpg"
style="max-width:960px"/></a>