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 Part 2
This is in reference to a discussion I started a minute ago. I tried to include the code I was referencing, and I don't understand why it was left out. I am trying to include it again:
<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 hope this works!
7 Answers
Nick Pettit
Treehouse TeacherHi Robert,
Can you post the entirety of the code that's in the editor? What challenge is this for and what error are you receiving?
Robert Spatz
5,673 PointsThank you for your response! Here is the entire code: The question was: 'Inside the three new list items, add the following images from inside the img folder: "numbers-01.jpg", "numbers-02.jpg", and "numbers-06.jpg". Leave the alt attributes blank, and don’t add any captions or links. Just the images!'
When I submit this code, I receive the message: 'Bummer! Make sure you include an image tag that displays "img/numbers-01.jpg".'
Incidentally, I received requests from both Stone Preston and Jason Anello to post a link to my challenge, but I haven't been able to do it. Jason also told me that I should have edited my original post, but I was unable to do that as well- I couldn't find a way to edit my posts. Your answer is the first I've been able to respond to, because there was no window that allowed me to respond to the others. I've never had a problem responding on a forum before- I don't understand why this happened.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nick Pettit</title>
</head>
<body>
<header>
<a href="index.html">
<h1>Nick Pettit</h1>
<h2>Designer</h2>
</a>
<nav>
<ul>
<li><a href="index.html">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<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>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
Robert Spatz
5,673 PointsSomething very strange is going on- I can't seem to be able to get my code or my responses to publish properly on this forum.
Nick Pettit
Treehouse TeacherI edited your post. In the future, be sure to add a line break after the first three tick marks and it should display properly.
Robert Spatz
5,673 PointsThank you!
Nick Pettit
Treehouse TeacherHi Robert,
Thanks for posting your code. I just looked over it and tried it out in the challenge.
Nowhere in the instructions does it say to add links. :) Just put the images inside the list items and you should be done.
Robert Spatz
5,673 PointsThank you for all of your help! Sorry I gave all of you such a rough time!
Nick Pettit
Treehouse TeacherNo worries, Robert. Happy to help! :)