Adding image | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Adding image

How to add a image in html... I tried with adding image name inside double quotes of img src... But when I ran it on brower image didnt appeared

16th Oct 2016, 3:14 PM
Raghav Gupta
Raghav Gupta - avatar
3 Answers
+ 2
<img src="path/to/your/image.jpg"></img> The path can be relative or absolute. If your image is in the same folder, you can simply put the image name. If you still have trouble getting it right, post the path you are using, and we'll fix that together.
16th Oct 2016, 3:31 PM
Zen
Zen - avatar
+ 1
Make sure you are using the correct type of image and the correct source inside double inverted commas.. Hope it helps :) .. Post your prob again with the syntax you are using...
9th Jan 2017, 10:13 AM
Rithik Bhandari
Rithik Bhandari - avatar
0
<html> <img src="storage/sdcard0/deep-road.jpg" alt="deep-road.jpg" width="50%"; height="50%"> </html>
24th Mar 2017, 12:40 AM
Ofori-Nketsiah Benjamin
Ofori-Nketsiah Benjamin - avatar