0
Having issues with adding images in html. tried using a browser to open the html file but it didn't display the image
10 Answers
+ 1
Please post some code or more specific question. Remember that you should use <img src="url/of/your/image.png" />
+ 1
the image is local(in my file)..
+ 1
If you have the html file and the image in the same directory, you just have to write the image filename and extension in the src attribute, example
<img src="puppy.jpg" />
+ 1
Mmm, are you sure there aren't other problems in your code? Also are you sure you're typing the filename well?
+ 1
thats what d code looks like.to me every thing seems ok
+ 1
Are you typing the filename correctly? You have to write the file extension (.png / .jpg / .gif)
+ 1
Thank you.. all my fault.. spelt it wrongly..thanks a million
+ 1
No problem, it's a common mistake even for professional programmers :p
0
tried it...i put the html file and the image in the same folder. then <img src="project1".jpg" alt=""/>. but chrome didnt view the img