Ask coding questions

← Back to all posts
CSS-2
BrainBox07

Please help! I can't upload my image. Even with the correct src link, it only displays the alt value.

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
BrainBox07
Comments
hotnewtop
Coder100

Change the src, for it is wrong. You made a local path, but replit only supports absolute paths.

Local paths are images only on your computer. Absolute paths are hosted by replit.

Change code:

BrainBox07

I am so excited, it worked. I changed the path just as you described. Thank You @Coder100

Coder100
TheDNAHero

You need a body and a head, you forgot those

BrainBox07

TheDNAHero

I think you just include src=“Foodimg.jpg” that’s what I do and it works

BrainBox07

Thank you @TheDNAHero, I have done that but the image ain't uploading