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

Marked Wrong on 'Front-End Web Development' Track Code Challenge Part 2

This is in reference to a discussion I started a minute ago. I am trying to include code for my last post:

      <ul>
        <li>
          <a href="img/numbers-01.jpg">
          <img src="img/numbers-01.jpg" alt="">
          </a>
        </li>
        <li>
          <a href="img/numbers-02.jpg">
          <img src="img/numbers-02.jpg" alt="">
          </a>
        </li>
        <li>
          <a href="img/numbers-06.jpg">
          <img src="img/numbers-06.jpg" alt="">
          </a>
        </li>
       </ul>
    </section>

I very much appreciate any help. Thank you!

can you post a link to the actual challenge please?

Hi Robert,

You're allowed to edit your posts so that you can fix things. Or even add the code to your question in a comment like I'm doing here.

It would have been better to add your code to your original question because now it looks like you have 3 posts about this same topic.

As Stone Preston mentioned, you should post a link to the challenge so that others can review it and see what you're missing.

3 Answers

I'll just have to guess at exactly which exercise you're working on, but if it's the one I think it is, you'll want your code to look like this:

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

Thank you Shawn! That solved my problem- I had

<li> <a href="img/numbers-06.jpg"> <img src="img/numbers-06.jpg" alt=""> </a> </li>

The <a href="img/numbers-06.jpg"> was causing the errors.

I apologize to everyone who responded. I've never had a problem responding on a forum before, but for some reason, I couldn't edit my original post, and I couldn't provide a link to the challenge. I don't know if something is going on with my computer, which is fairly new, or what, but I'm having some strange problems lately! Thank you everyone!

I'll try to post my code again! This was causing the problem:

          <a href="img/numbers-01.jpg">
          <img src="img/numbers-01.jpg" alt="">
          </a>
        </li>

Glad I could help. I think you were just trying to do too much; they didn't want to see anchor tags or the alt attribute for the challenge. Can you mark the above response as the best answer so that it shows up as solved in the forum?