+ 3

❓❓ HTML question ❓❓

I saved a picture I downloaded from the Internet as 'sky'. Therefore it becomes sky.jpg. Why doesn't it work if I put sky.jpg into an <img> src?

5th Dec 2017, 10:05 AM
janiacodes_
janiacodes_ - avatar
5 Answers
+ 8
If you want to display the image, then you have to keep that in the same folder OR You can also type src like this Suppose it is in folder named images, then <img src = 'images/sky.jpg' />
5th Dec 2017, 10:25 AM
#RahulVerma
#RahulVerma - avatar
+ 9
Did you save that image in the same directory (folder) as the .html file?
5th Dec 2017, 10:14 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 7
w3 school search
10th Dec 2017, 10:08 AM
Vyshnav Vishnu
Vyshnav Vishnu - avatar
+ 2
Thank you! 😊
5th Dec 2017, 10:27 AM
janiacodes_
janiacodes_ - avatar
0
Hi, I Just scrolled down and saw that you don't have that many views so I decided to say if you want to have more people comet You need to be at the top of the list.
14th Nov 2023, 12:56 AM
Family Tablet