Hi everyone. Why can't I upload HTML images. 😔😔 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Hi everyone. Why can't I upload HTML images. 😔😔

21st Feb 2021, 3:42 AM
🇺🇿👨‍💻OG'ABEK🔥🇺🇿
🇺🇿👨‍💻OG'ABEK🔥🇺🇿 - avatar
6 Answers
+ 3
Because your link does not include the image file itself. An example: <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>Hello World</h1> <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Freightliner_M2_106_6x4_2014_%2814240376744%29.jpg/300px-Freightliner_M2_106_6x4_2014_%2814240376744%29.jpg"> </body> </html> See that the last group of characters in the image link after the forward-slash (/) ends with .jpg?, That's the name of the image file that needs to be included.
21st Feb 2021, 4:59 AM
Moshe Schnitzler
Moshe Schnitzler - avatar
+ 9
Thank you all 😊😊👍🥰
21st Feb 2021, 12:03 PM
🇺🇿👨‍💻OG'ABEK🔥🇺🇿
🇺🇿👨‍💻OG'ABEK🔥🇺🇿 - avatar
+ 6
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>Hello World</h1> <img src="https://unsplash.com/collections/38/collection-%2338%3A-crew"> </body> </html>
21st Feb 2021, 4:03 AM
🇺🇿👨‍💻OG'ABEK🔥🇺🇿
🇺🇿👨‍💻OG'ABEK🔥🇺🇿 - avatar
+ 2
Show one of your code which has this problem.
21st Feb 2021, 3:57 AM
K.S.S. Karunarathne
K.S.S. Karunarathne - avatar
+ 2
Your code has to be saved in the same folder with your image
22nd Feb 2021, 9:18 PM
Aurel Njike
Aurel Njike - avatar