Answers for "how to add a local image in html"

2

html local image

PATH
<img src="img.jpg" >
<img src="images/img.jpg" >
<img src="/program/images/img.jpg" >

NAME
<img src="img.jpg" alt="Name in the site" >

SIZE
<img src="img.jpg" style="width: 300px; height: 150px" >
<img src="img.jpg" style="width: 30%; height: 20%" >
Posted by: Guest on August-03-2021
1

how to add image in html from a folder

|-> myhtmlfiles
      |-> index.html
|-> images
      |-> my_image.jpg

<img src="../images/my_image.jpg">
Posted by: Guest on May-21-2020

Code answers related to "how to add a local image in html"

Browse Popular Code Answers by Language