Html, inserting an image | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Html, inserting an image

I can not figure out how to put an image into codeplayground, I have been trying for the past 30 minutes with dead end after dead end. Please somebody help. Things I have tried are getting it strait out of my file, posting it on imgur then putting that in, getting it off of Google. And yes I have the alt part.

29th Mar 2019, 9:02 PM
Bigboy
Bigboy - avatar
3 Answers
+ 4
img tag's src attribute doesn't have the "=" sign. <img src="mylink.png" alt="Picture of nothing"></img> You can take a look at my old code for reference. https://code.sololearn.com/WjXBaep9yLwp/?ref=app
30th Mar 2019, 12:49 AM
Lord Krishna
Lord Krishna - avatar
+ 2
Here's my code <!DOCTYPE html> <html> <head> <title>colors</title> </head> <body> <hr /> <h1 align="center"> cursed images </h1> <hr /> <p1>image count:</p1> <br /> <br /> <br /> <img src"20190328_221136.jpg" /alt=rip> </body> </html>
29th Mar 2019, 9:04 PM
Bigboy
Bigboy - avatar
+ 1
Still didn't work however I clicked the link and it showed the image in it's own tab so I figured it out all I have to do is get the image into it's own tab and copy past that link, thank you!
30th Mar 2019, 1:01 AM
Bigboy
Bigboy - avatar