Answers for "picture with link html code"

2

how to link a image in html

<html>
  <head>

  </head>
  <body>
  
<img alt="image" src="image.png" onclick="imageClicked()">

    
<script> 
   function imageClicked() {
     window.open("https://www.google.com");
   	}
</script>
    
    
  </body>
</html>
Posted by: Guest on July-19-2021
1

html images with link

<a href="https://www.google.com">
	<img src="./images/image.jpg" />
</a>
Posted by: Guest on October-01-2020

Browse Popular Code Answers by Language