+ 1

Why won't the image load?

I'm coding a webpage with HTML and the image I'm using for it for load. I added the coding in for it to show,and put the image in a sub folder,but all it shows is the alternate text I put in.

2nd Feb 2018, 8:43 PM
Giovanni
Giovanni - avatar
18 Respostas
+ 4
Write </a> before closing tag </body>
2nd Feb 2018, 9:01 PM
Saidmamad Gulomshoev
Saidmamad Gulomshoev - avatar
+ 4
Your anchor and paragraph ending tags are missing
2nd Feb 2018, 8:59 PM
Toni Isotalo
Toni Isotalo - avatar
+ 4
You messed up everything :) The p tag is also not closed and comes inside h1 tag which is not correct
2nd Feb 2018, 9:03 PM
Saidmamad Gulomshoev
Saidmamad Gulomshoev - avatar
+ 3
sorry for all the mistakes. this is what I get for making it at 2:00 in the morning 😂
2nd Feb 2018, 9:04 PM
Giovanni
Giovanni - avatar
+ 2
Can you add a bit of your code? Maybe that can help us answer your question
2nd Feb 2018, 8:45 PM
Limitless
Limitless - avatar
+ 2
What i can see is that your anchor tag <a> is not close like </a> try to do and check again
2nd Feb 2018, 8:55 PM
Strange
Strange - avatar
+ 2
You also misspelled src as scr, which isn't a real attribute for links.
2nd Feb 2018, 9:02 PM
Faisal
Faisal - avatar
+ 1
<html> <head> <title>Gio</title> </head> <body> <h1><p align="center"><strong>Welcome to my website</strong></h1> <a href="https://m.youtube.com/channel/UCBwHW7zh8vhEbUL6_o6oo4w"target="_blank"> <img scr="assets/images/t.jpg" alt="image isn't loading"width="150"height="150" /> </body> </html>
2nd Feb 2018, 8:47 PM
Giovanni
Giovanni - avatar
+ 1
Where is your HTML file located?
2nd Feb 2018, 8:54 PM
Saidmamad Gulomshoev
Saidmamad Gulomshoev - avatar
+ 1
In a folder,inside another folder,which is named assets
2nd Feb 2018, 8:55 PM
Giovanni
Giovanni - avatar
+ 1
which ones?
2nd Feb 2018, 8:58 PM
Giovanni
Giovanni - avatar
+ 1
@Giovanni use a code editor, lile Visual Studio code or Sublime
2nd Feb 2018, 9:06 PM
Saidmamad Gulomshoev
Saidmamad Gulomshoev - avatar
+ 1
What does your code look like now? Also one way to check if there is a problem with the path versus he code would be to put a link to a photo already online temporarily just to see if it appears.
2nd Feb 2018, 11:07 PM
Carl Chopp
Carl Chopp - avatar
0
I'm not using html5 tags,I'm using basic html
2nd Feb 2018, 9:20 PM
Giovanni
Giovanni - avatar
0
I have fixed just about everything,but the image still doesn't want to load up
2nd Feb 2018, 9:39 PM
Giovanni
Giovanni - avatar