I would like to make logo of website clickable to index.html, but whole div is the link. I need only clickable picture.
Here is snippet of my code:
<div >
<a href="../index.html">
<img src="../../images/logo.svg" alt="logo">
</a>
</div>
I tried different ways to solve this problem but it doesn't work for me.
CodePudding user response:
Try this example working good.
<!DOCTYPE html>
<html>
<head>
<title>HTML Image as link</title>
</head>
<body>
<div >
<a href="https://www.qries.com/">
<img src="https://www.qries.com/images/banner_logo.png" alt="logo">
</a>
</div>
</body>
</html>