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
Robert Spatz
5,673 PointsMarked Wrong on 'Front-End Web Development' Track Code Challenge
I am trying to complete challenge task 2 of 2, and I keep receiving the message:
Bummer! Make sure you include an image tag that displays "img/numbers-01.jpg".
My code appears to be right, as I have checked it against the code I created when I was following along in the video lectures:
<section> <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 don't understand why it is being marked wrong. I would very much appreciate some help. Thank you!
Ron McCranie
7,837 PointsIt's difficult to see what's wrong with your answer without seeing your code.
3 Answers
Mark McGuinness
Courses Plus Student 26,312 PointsHey Robert, It's difficult to say without seeing your code but it should look like the following:
<img src="img/numbers-01.jpg">
Sometimes it's just a case of typo errors.
Hope this helps
Robert Spatz
5,673 PointsHi Mark, Thank you very much for responding! Someone else already answered my question yesterday- In fact, your answer is the same one, and it worked! I'm afraid I made a mess, because I couldn't figure out where to edit my question, so I started three instances of it. I also had a rough time understanding where to add the backticks around the code, so I made a mess of that as well. You can see the discussion here if you are interested: http://bit.ly/1o4AbJc Thank you again, and sorry for the confusion!
Mark McGuinness
Courses Plus Student 26,312 PointsNo Problem Robert. Sometimes it is actually working out what the task requires you to do.
Like Shawn Flanigan says, you probably only needed to put the img tag and location within the tag.
The additional markup, anchor text etc is probably what caused the problem as it wasn't required. So keep going, your coding looks fine. :)
Best Mark
Stone Preston
42,016 PointsStone Preston
42,016 Pointscan you post a link to the challenge please?