How to add image in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to add image in html

give an example

26th Jul 2017, 1:03 PM
Bilal yousaf
Bilal yousaf - avatar
19 Answers
+ 11
<img src=/folder/image.jpg>
26th Jul 2017, 1:05 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
😉😉😉 I'm 10 Years Old 😉😉😉 Your Welcome from all of the who answer your question
26th Jul 2017, 1:44 PM
Art456
Art456 - avatar
+ 7
yeah I love it too but its 30 days trial so I need to crack the system 😐😐
26th Jul 2017, 1:48 PM
Art456
Art456 - avatar
+ 6
nope you can't if your websites online if offline you can but its difficult because its only can in software that help create website (offline) and if you don't remember/ know the link use Google drive for link or imigur
26th Jul 2017, 1:11 PM
Art456
Art456 - avatar
+ 4
what do you mean ???
26th Jul 2017, 1:07 PM
Art456
Art456 - avatar
+ 3
use a DreamWever program its easy to write code for make a website and this program help you to not write the root of folder because the program just ask you where the place of your photo , then it complete the root folder automatically
26th Jul 2017, 1:47 PM
Malak Naim
Malak Naim - avatar
26th Jul 2017, 1:05 PM
Ledio Deda
Ledio Deda - avatar
+ 2
If you take the image online, than just copy the image adress and paste it intead of .... So src="..." Example <img src="http.shsjkak.jpg" alt=""/> If you take the image from a file in computer than at src "" put the name of file and and add .jpg or .png(depends on image...)
26th Jul 2017, 1:08 PM
Ledio Deda
Ledio Deda - avatar
+ 2
Correct the syntax following the previous examples!!! It should be <img src="imagename" alt="" />
26th Jul 2017, 1:10 PM
Ledio Deda
Ledio Deda - avatar
+ 1
I am just 15
26th Jul 2017, 1:43 PM
Bilal yousaf
Bilal yousaf - avatar
0
but how to add from my website folder
26th Jul 2017, 1:05 PM
Bilal yousaf
Bilal yousaf - avatar
0
In HTML, images are defined with the <img> tag. The "src" attribute specifies the URL (web address) of the image. The "alt" attribute specifies an alternative test that is displayed when the image can't be loaded. <img src="SoloLearn.jpg" alt="The SoloLearn Logo">
26th Jul 2017, 1:08 PM
Saka Oluwadamilola
Saka Oluwadamilola - avatar
0
I mean I have typed <I'm src-"Bilal/website/2/Biology.jpg"/>
26th Jul 2017, 1:08 PM
Bilal yousaf
Bilal yousaf - avatar
0
still Internet explorer or Mozilla not showing image
26th Jul 2017, 1:09 PM
Bilal yousaf
Bilal yousaf - avatar
0
If it's still not showing in the browser, it's an issue with the URL. If you are linking an image in your local drive, be sure to specify its full path: file:///C:/Users/User Name/Documents/Pictures/image.jpg If you are linking an image from the internet, be sure to specify its full path also: http://www.domain.com/path/image.jpg
26th Jul 2017, 1:15 PM
Saka Oluwadamilola
Saka Oluwadamilola - avatar
0
I have done it THANKS A LOT FOR EVERYONE'S HELP
26th Jul 2017, 1:42 PM
Bilal yousaf
Bilal yousaf - avatar
0
so happy
26th Jul 2017, 1:43 PM
Bilal yousaf
Bilal yousaf - avatar
0
thanks
26th Jul 2017, 1:48 PM
Bilal yousaf
Bilal yousaf - avatar