Given my current code, how would I go about hyperlinking an image, so that when the user clicks on the image, the browser opens a new tab, and displays the image?
body {
margin: 0;
padding: 0;
}
.img {
display: grid;
height: 100%;
}
.center-fit {
max-width: 100%;
max-height: 100vh;
margin: auto;
}
<div class="img"> <img class="center-fit" src='https://upload.wikimedia.org/wikipedia/commons/thumb/d/d9/Collage_of_Nine_Dogs.jpg/1363px-Collage_of_Nine_Dogs.jpg'></div>