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?
11 odpowiedzi
+ 5
Sorry, then I didn't understand the question correctly.
+ 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">
+ 4
The <img> tag. You should finish the html course.
+ 4
It also has to be a URL that goes in between the <img> tag.
+ 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?
+ 3
Thanks. I'll try that.
+ 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
+ 2
my answer got a downvote while its true hmm 😐
+ 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.
+ 1
I will later when I'm on a much larger screen. I'm on my phone at the moment.
+ 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.