Answers for "how to link img src in html"

7

html img src

<img href="https://website.com/image.jpg"> 
<!-- for an image online -->

<img src=C:\your_files>
<!-- for a local file -->
Posted by: Guest on June-18-2020
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
2

img src html

<img src="https://source.unsplash.com/user/c_v_r" alt="Unsplash" alt="This is the alt" height="42" width="42">
Posted by: Guest on March-23-2021

Browse Popular Code Answers by Language