Ask coding questions

← Back to all posts
Adding Images
UmarQureshi4

So, I'm trying to add a picture in HTML. It's a file, and when I insert it, it says the picture can't be shown.

Is it possible to add a file picture in HTML, and if not, is there any other possible way, I can do anything to my file image to make it accessible?

Answered by Kookiez [earned 5 cycles]
View Answer
Voters
SUHASTADIPARTH1
UmarQureshi4
Comments
hotnewtop
Kookiez

well, if it's your own, personal image, you can drag and drop it into your file corner thing. then, you can link it, so if your picture is called pic.jpg, then you write in the html code, <img src = "pic.jpg">

SUHASTADIPARTH1

You can also upload a file on repl.it and then you can get that name of the file and put that name of the file inside the source tags.

Please mark my answer if it helps. Thank you,

SUHASTADIPARTH1

Just copy the image address or copy image and paste that code into the source attribute in the image tags.

SUHASTADIPARTH1



SUHASTADIPARTH1

Yes, you can add images in HTMl by using the <img></img> tags

<img src="source goes here...." />
RYANTADIPARTHI

you have to connect the image with the source. like this - <img src="FILE NAME">. like that. You need to put the image in the source. OR you can right click on a image, click copy image, and paste it IN the source.