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

HTML How to Make a Website Creating HTML Content Organize with Unordered Lists

How to do an image tag?

What should this code look like

7 Answers

Shawn Flanigan
PLUS
Shawn Flanigan
Courses Plus Student 15,815 Points

Each list item in the challenge will end up looking something like this: <li><img src='img/numbers-01.jpg'></li>

where 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="">

<img/> its a block item so it closes itself it does not need a closing tag

I 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
Shawn Flanigan
Courses Plus Student 15,815 Points

Jaynie: 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.

I thought the tag looked like this: <li> <img scr="img/numbers-09.jpg" alt=""> </li> I thought it was using the " (quotation mark)

No, 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
PLUS
Shawn Flanigan
Courses Plus Student 15,815 Points

For 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>