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 trialmelissa brown
4,670 PointsImage not displaying
hi my image is not displaying here is the code i have put in. not sure what is wrong
<section>
<ul>
<li>
<img scr="img/numbers-01.jpg" alt="">
</li>
</ul>
</section>
8 Answers
Shawn Flanigan
Courses Plus Student 15,815 PointsMelissa,
It looks like you're using scr
instead of src
in your img
tag. Change that and your image should show up. I also noticed that in your link, you're pointing to image/number...
instead of img/number...
.
Hope this helps!
Alexander Rasmussen
12,901 PointsCan you add the code here so we can see it ? :)
melissa brown
4,670 Points<section>
<ul>
<li>
<a href="image/numbers-01.jpg">
<img scr="img/numbers-01.jpg" alt="">
<p>experimentation with colour and texture</p>
</a>
</li>
</ul>
</section>
melissa brown
4,670 Pointssorry my code is not posting. is there some way to send a screen shot?
Shawn Flanigan
Courses Plus Student 15,815 PointsMelissa,
I edited your post to display the code properly. You just need to wrap 3 backticks (left of "1" on your keyboard) before and after your code.
melissa brown
4,670 Pointssorry my code is not posting. is there some way to send a screen shot?
Alexander Rasmussen
12,901 PointsYou would need to change you image to this line instead:
<img src="image/numbers-01.jpg" alt="">
It is src, and not scr. And then you have to link to the right image folder.
Tell if it is not working.
melissa brown
4,670 Pointsopps thank you so much!!!
Alexander Rasmussen
12,901 PointsYou're welcome :)