I am a beginner and why is it when I enter the the image line and the image is called redbag.jpg nothing happens? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I am a beginner and why is it when I enter the the image line and the image is called redbag.jpg nothing happens?

https://code.sololearn.com/WoXeASEJ6Bhm/?ref=app

3rd Nov 2023, 4:39 PM
Fin
7 Answers
+ 3
You need to include the entire URL in Your code. This is called an 'absolute URL'. Example: <img src="http://some-website/images/cool-photo.jpg"> You currently have just the image name in your code without the full URL. https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Web_mechanics/What_is_a_URL
3rd Nov 2023, 5:43 PM
Keith
Keith - avatar
+ 4
If you want to upload images on Sololearn, here's the recommended and easiest method: 1. Visit: https://postimages.org 2. You'll find an upload button—tap on it and upload your desired image. 3. Once uploaded, the image will be posted on the site. 4. Copy the direct link provided, and you're all set!
5th Nov 2023, 9:32 AM
Dev Nasfam
Dev Nasfam - avatar
0
Please help me
3rd Nov 2023, 4:40 PM
Fin
0
Your tags look out of order
3rd Nov 2023, 10:38 PM
Annihilate
Annihilate - avatar
0
Oh I thanks I thought you could show images that you have taken yourself
4th Nov 2023, 12:01 PM
Fin
0
Wait so then how do you insert jpg files in your code. Do you always have to find the image online
4th Nov 2023, 12:07 PM
Fin
0
No, I meant the tags in the question. Here, they look like: (src) (<img) (>) (jpg") (="redbag.) But on your side, I think they should be: (<img) (src) (="redbag.) (jpg") (>)
4th Nov 2023, 7:26 PM
Annihilate
Annihilate - avatar