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 trialKaleb Chapin
3,018 PointsI'm stuck adding images. I've done exactly as instructed and it say that I've done something wrong, what do I do?
I've added the unordered list and the three list items, which were correct and allowed me to move to the next step, adding the images. When I do exactly as it says in the video and instructions, I get an error that says 'Bummer! Make sure you include an img tag that include "numbers-01.jpg" (or something to that effect). I'm not sure what to do and need some instructions on how to remedy the situation. I want to make sure this is the right training website for me before my free trial is up.
<!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>
</nav>
</header>
<section>
<ul>
<li><img href="numbers-01.jpg" alt=""</li>
<li><img href="numbers-02.jpg" alt=""</li>
<li><img href="numbers-06.jpg" alt=""</li>
</ul>
</section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
1 Answer
Jeff Kinley
21,207 PointsHi Kaleb, It looks like you did not close the img tag with a ">".
Try this:
<li><img href="numbers-01.jpg" alt=""></li>
In HTML, img tags do not have an "end tag" like the list item tag in your code, but it still has to be closed as above. Also, notice the syntax highlighting in your screenshot. Do you see how the "</" before the "li" is red? Like this:
<li><img href="numbers-01.jpg" alt=""</li>
This is giving you a hint that that there is an error in your code.
Let me know how you make out.
Jeff
MOD NOTE: Move from "Comment" to "Answer" so it may be upvoted and/or marked as "Best Answer"
Kaleb Chapin
3,018 PointsKaleb Chapin
3,018 PointsThere were a few errors in my code and the solution/hints you provided helped fix that particular problem and helped me in other challenges.