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

How can I include an image in html?

I have tried to follow the instructions given by some members on here but I've failed to get it right.

20th Jan 2018, 7:06 PM
tushcathy
tushcathy - avatar
7 Answers
+ 15
<img src=source alt="wrong path">
20th Jan 2018, 7:06 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
Do you know if you're wanting to use a relative or absolute path? Do you know how to find either of these or would you like this explaining?
20th Jan 2018, 7:14 PM
Peter David Carter
Peter David Carter - avatar
+ 3
<img src = "urlOfYourImage" alt="alternativeTextInCaseIDoNotWork" />
20th Jan 2018, 8:24 PM
Tarantino
Tarantino - avatar
+ 2
<img src="http://imageUrl.png" >
20th Jan 2018, 7:15 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 1
I don't mean generally in html but here on solo learn.
21st Jan 2018, 6:03 AM
tushcathy
tushcathy - avatar
+ 1
@peter could you please explain the difference between relative and absolute paths?
21st Jan 2018, 6:04 AM
tushcathy
tushcathy - avatar