Ask coding questions

← Back to all posts
how do I insert an image in html?
Mahjebeen (0)

can you give me a direct code. just leave out a space where I need to insert things. I have tried every code on the internet, or the websites my teacher told me to, but just help a poor soul out, won't you? (I swear)

Thanks,
someone who does not like html

Answered by RYANTADIPARTHI (3324) [earned 5 cycles]
View Answer
Commentshotnewtop
RYANTADIPARTHI (3324)

This is easy! Use a <img tag to do the work:

<img src="image URL">

In the image URL part. Put the URL from the image. The way you get that is by clicking copy image address on an image. And pasting it there. Another way is uploading an image.

by clicking the three dots, you can upload. And in the image URL, you can put the file name.

That should work

Mahjebeen (0)

@RYANTADIPARTHI omg thank you so much! I have tried what you have done but it simply comes up as a question mark in a box. I have also tried a different search engine but it doesn’t work. Do you know why?
Thanks for your swift reply!
That poor soul who hates html and wants to do python instead but can’t

RYANTADIPARTHI (3324)

@Mahjebeen umm np, but could you explain your question better?

Mahjebeen (0)

@RYANTADIPARTHI sryyy... umm I dunno bu- it look a bit like this and I spa confused..

oh ye and also... when I load the page on a new tab, it just be like the same ting.
please ease my amateur coder mind.
is it my laptop or my code?
I am not willing to show you the disaster my code is in. :(

RYANTADIPARTHI (3324)

@Mahjebeen ok, it's ok, can you show me your repl?

Mahjebeen (0)

@RYANTADIPARTHI dw! I fixed the problem. some googling!

xxpertHacker (606)

RIP - someone else who doesn't like HTML.