Answers for "how to link a website picture in html"

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

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>
Posted by: Guest on January-10-2021

Code answers related to "how to link a website picture in html"

Browse Popular Code Answers by Language