0

How to add a picture in HTML

I've follow the instruction in sololearn on how to add an image to a websit and I'm still not getting any results. Any hints?

29th Jun 2017, 5:55 PM
Regina Dailey
Regina Dailey - avatar
11 Réponses
+ 5
Sorry, then I didn't understand the question correctly.
29th Jun 2017, 6:00 PM
DeltaTick
DeltaTick - avatar
+ 5
the img-tag doesn't have a closing tag. when using external sources (something from the internet) you can't just begin with www.... but have to start with the protocol (mostly http or https), so a valid url would be something like http://www.example.com/images/kitten.jpg so in conclusion write something similar to this <img src="http://www.example.com/images/kitten.jpg" alt="cute kitty">
29th Jun 2017, 6:52 PM
Mario L.
Mario L. - avatar
+ 4
The <img> tag. You should finish the html course.
29th Jun 2017, 5:57 PM
DeltaTick
DeltaTick - avatar
+ 4
It also has to be a URL that goes in between the <img> tag.
29th Jun 2017, 5:58 PM
DeltaTick
DeltaTick - avatar
+ 3
Make sure your directory is correct. If it can't find the pic, it can't display it. Can you post the code you're using for it?
29th Jun 2017, 5:57 PM
AgentSmith
+ 3
Thanks. I'll try that.
29th Jun 2017, 6:24 PM
Regina Dailey
Regina Dailey - avatar
+ 2
if url <img src="www....." > if in pc depend on location <img src"folder/1.png" > download bracket it help, it give the image location
29th Jun 2017, 6:14 PM
Elie Douaihy
Elie Douaihy - avatar
+ 2
my answer got a downvote while its true hmm 😐
29th Jun 2017, 7:01 PM
Elie Douaihy
Elie Douaihy - avatar
+ 1
@Reuben They're on the lesson, but pic not displaying even after they use the img tag. It's probably just the directory they're pointing to.
29th Jun 2017, 5:59 PM
AgentSmith
+ 1
I will later when I'm on a much larger screen. I'm on my phone at the moment.
29th Jun 2017, 6:01 PM
Regina Dailey
Regina Dailey - avatar
+ 1
first thing if the picture was given by the question they should show you the src, or if you wont to make from your folder you should know the img directory.
29th Jun 2017, 8:09 PM
Hassan Jaber
Hassan Jaber - avatar