Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Riz kalif
192 Points<helpme>HMTL NOOB</helpme>
I was wondering why my html image wont show up all it gives me is black X mark where the image is supposed to be on my explorer browser and same goes for chrome:(
Here's my code guys:
<img src="img/bear.jpg alt="WELCOME IN SIR">
missgeekbunny
37,033 PointsOh I just thought of something that is annoying but happened to me. Try to just open your image on your computer. It might be that the image corrupted. Just something to check that might help.
7 Answers
missgeekbunny
37,033 PointsIsn't an image a self contained tag? So it would be more like <img src="yourfilepath.png" alt="Something for screenreaders to know what they're looking for" />, right?
BTW, super cute title and picture.
Marcus Tisäter
4,886 PointsHello,
< img src="yourpicturename.format" >
Make sure it's in the same directory as the html file, otherwise you need to tell src in which directory you're picture is located at.
missgeekbunny
37,033 PointsYeah if it isn't working after that it would be something to do with your path. Maybe you might just want to try typing the file path into your browser the same way you look at the html page and the same way you have it written and see if you can get it to come up.
Katrina M
Courses Plus Student 2,780 PointsI just stopped by bc I like your profile pic
Riz kalif
192 PointsROFL~ thanks
Riz kalif
192 Points<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>FIRST WEB</title> <h1> WELCOME<h1> <h2><b>WELCOME SIR<b><h2> </head> <body> <img src="img/bear.jpg"> <ul> <li><a href="#">ABOUT US</a><li> </ul> </body> </html>
Did i get it wrong???? cause I'v done what you said :( still wont work
Riz kalif
192 Points(????)? ? thank you melissa
But, -_- still not working........ maybe it might be the folder or pathway Im using or taking.......and truthfully idk how to do any of that
Riz kalif
192 PointsShout out!~to~:"HEAD MOD JAMES BARNETT" also to Marcus & Missy for helping me achieve my first image in html
(o) !~ I FEEL SO PROUD OF MY SELF!
<!DOCTYPE HTML>
<html>
<head>
<title>FUTUREOBAMAOFWEBDESIGN</title>
</head>
<body>
<h1>THANKS SO VERY MUCH GUYS<h1>
<img src="http://www.troll.me/2012/11/25/scumbag-obama/woopwoop-woop-dam-gangdamstyle-boooosh!/"
</body>
</html>
James Barnett
39,199 PointsJames Barnett
39,199 PointsYou win the forum for today with that title