Skip to content
← Back to Community
images in repl
Profile icon
MackRamirez

I am wondering how I can import an image to the html file ill need a path but I cant download the image directly to the repl file or can I?

Voters
Profile icon
mhjhnwnhw
Profile icon
SebastianRodr53
Profile icon
SnugTop
Profile icon
LiamClyde
Profile icon
SreehanAdgopula
Profile icon
DylanWebber3
Profile icon
itchen
Profile icon
jiho3092
Profile icon
blaiseBlaise
Profile icon
MohammadHamzah1
Comments
hotnewtop
Profile icon
LeonDoesCode

If your image is on your computer, you can drag it into the place where all your other files are. The paths will work the same as normal (if your image is in a imgs folder, then you would access it using imgs/{file-name}.

If it's on the internet, you can copy the link to it and use that as the src value.

Profile icon
Zavexeon

You can upload image files to repl.it.

Just click that triple dot icon by the file tree in your repl and click "Upload file".

In the HTML you can add the image to your site by adding `This file cannot be displayed: imagename.extension

The imagename.extension would be the file name of your photo followed by .gif, .png, or some other image format.
image

Profile icon
MackRamirez

@Zavexeon awesome thank you

Profile icon
mhjhnwnhw
Profile icon
mhjhnwnhw
Profile icon
mhjhnwnhw

alooshkm200