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 trialEli Molin
386 PointsHow to do an image tag?
What should this code look like
7 Answers
Shawn Flanigan
Courses Plus Student 15,815 PointsEach list item in the challenge will end up looking something like this:
<li><img src='img/numbers-01.jpg'></li>
Kayla Millar
217 Pointswhere you able to figure it out? I'm doing the challenge and it keeps saying
Bummer! Make sure you include an image tag that displays "img/numbers-01.jpg".
this is how I'm entering the code.
<img scr="img/numbers-01.jpg" alt="">
Jamie Gordon
Courses Plus Student 47 Points<img/> its a block item so it closes itself it does not need a closing tag
Jaynie Williams
603 PointsI thought the tag looked like this: <li> <img scr="img/numbers-09.jpg" alt=""> </li> I thought it was using the " (quotation mark)
Shawn Flanigan
Courses Plus Student 15,815 PointsJaynie: We can't see your code unless you wrap it in backticks (see the Markdown Cheatsheet link at the bottom of the comment box). Double quotes and single quotes are both valid in this case, though, so it shouldn't throw an error. If you'd like to post your code, I'd be happy to look at it.
Jaynie Williams
603 PointsI thought the tag looked like this: <li> <img scr="img/numbers-09.jpg" alt=""> </li> I thought it was using the " (quotation mark)
Jaynie Williams
603 PointsNo, not yet. I'm including the tag the right way. I'm wondering if it has something with the way it was saved.
Shawn Flanigan
Courses Plus Student 15,815 PointsFor those of you on this thread that still haven't found a solution, this is what the <section>
block should look like:
<section>
<ul>
<li><img src='img/numbers-01.jpg'></li>
<li><img src='img/numbers-02.jpg'></li>
<li><img src='img/numbers-06.jpg'></li>
</ul>
</section>