Skip to content
Sign upLog in
← Back to Community

How do I import an image into html

Profile icon
MatthewX

I tried downloading the image and putting in a Url but still the image isnt showing up. Pls help

Answered by DungeonMaster00 [earned 5 cycles]
View Answer
Voters
Profile icon
nat1trres
Profile icon
octopyBot
Profile icon
MatthewX
Comments
hotnewtop
Profile icon
DungeonMaster00

Also, you have to copy the image location when importing an image.

You can right-click and then select copy image location\address and then put it as the src

Profile icon
PattanAhmed

@MatthewX
Hi Matthew,
On line 11 your code is like this:-

<img link="https://images.app.goo.gl/ztXsAK9c2dJyKLc49" alt = "pikachu">

You should type src not link there...
Your code should look this:-

<img src="https://images.app.goo.gl/ztXsAK9c2dJyKLc49" alt = "pikachu">

Hope this helps
Please mark my answer if this helps

Profile icon
MatthewX

@PattanAhmed
I tried using src too, but for some reason the image isn't showing up.

Profile icon
PattanAhmed

@MatthewX
Sad to Say, Sorry,
You can't do it for Google Images, but you can follow these websites below to do so:-
Check this website
Check this too

For Alternate, You can upload an image that is stored on your device only when it is stored as .jpg (if you don't know how to upload, then comment me below I will give you the steps) file by uploading it as a file and you can try importing that file to your existing running file...
Try
If the two methods also failed, then Sorry to say, we can't do anything

Hope this helps
Please mark my answer if this helps.

Profile icon
octopyBot

it's img src and then the photo link, but the second link not the first.

if u found this helpful, mark it as the correct answer

Profile icon
Coder100

Hi! It's not link it's src. Next time you should probably refresh your HTML

<img src="https://images.app.goo.gl/ztXsAK9c2dJyKLc49" alt = "pikachu">