I have a pic on my pc how do i insert it in a html code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

I have a pic on my pc how do i insert it in a html code

I have a pic on my pc how do i insert it in a html code

10th Nov 2017, 3:47 PM
King Frankostein®
King Frankostein® - avatar
2 Answers
+ 4
Hey :) If you open the html file from your computer put the image in the same directory as the html. Than in your code <img src="yourImage.jpg"/>. If your html file is somewhere on the cloud you can upload the image to a free host like this: https://imgur.com. Then get the address of your image from the website and to put it as the src attribute. Hope it helps
10th Nov 2017, 4:03 PM
Uria
+ 3
thank you very much
10th Nov 2017, 4:04 PM
King Frankostein®
King Frankostein® - avatar