How do I put images in html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I put images in html?

I'm learning html and I'm on the basics right now. I just got to the <img> code, but I don't really understand how it works. Can someone please explain?

2nd Sep 2017, 6:24 AM
Monsoon
Monsoon - avatar
2 Answers
+ 10
<img src="Url of your image here"/>
2nd Sep 2017, 6:27 AM
P R
P R - avatar
0
For sololearn programs you can't put images stored on your device so you might have to use a CDN (content delivery network) to link images in the page or use data uri images by converting your images into text that HTML can display as a image.. You can convert your images here https://websemantics.uk/tools/image-to-data-uri-converter/ https://code.sololearn.com/WC54BZf4fJ94/?ref=app
4th Sep 2017, 2:05 AM
Kalo 'smi
Kalo 'smi - avatar