How to add an image on HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to add an image on HTML?

I am trying to add image on img tags. But don't get the process. Thanks in advance.

19th Nov 2018, 8:51 AM
Mahmud Hasan
Mahmud Hasan - avatar
4 Answers
+ 3
<img src="your-image-path" /> Image tag will have the src attribute whose value is the path of the image I think you might be giving wrong image path
19th Nov 2018, 8:55 AM
Rishi Anand
Rishi Anand - avatar
+ 2
You need this example <img src="PATH_TO_YOUR_IMAGE" />
19th Nov 2018, 8:54 AM
BodyaBuilder
BodyaBuilder - avatar
+ 1
<img src= yourimage.jpg/>
20th Nov 2018, 5:35 AM
Bern Lugo
Bern Lugo - avatar
0
<img src=โ€œ//your.image.pathโ€/>
21st Nov 2018, 8:47 AM
Alex
Alex - avatar