Why do the images in my code are not displaying now, despite being displayed earlier? Is there any problem with the new update? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why do the images in my code are not displaying now, despite being displayed earlier? Is there any problem with the new update?

https://code.sololearn.com/WKEQ9v03SIKC/?ref=app This is the code

17th Oct 2019, 9:15 AM
Roshan Diwan
Roshan Diwan - avatar
2 Answers
+ 4
You are using local files in your device, so this code can only work in your device. I would suggest you to create directory and copy all the images there (or in a subdirectory within that directory) so you wouldn't need to specify the full path to the file. Read more about absolute and relative paths here: https://www.w3schools.com/html/html_filepaths.asp BTW, you put a script with `document.write` within, which will overwrite whatever content already rendered on your page.
17th Oct 2019, 10:03 AM
Ipang
+ 1
Thanks for sharing information... Ipang I'll try. but I am getting the same result after removing the script also.
17th Oct 2019, 10:31 AM
Roshan Diwan
Roshan Diwan - avatar