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 trialYasir Ali
5,005 Pointshaving an error even after fixes all my mistakes
Im having an error during a challenge. I continuously have the same issue that shows up. I went back and compared my work to the video, and my work is matched. The error states," Bummer! Make sure you include your image tag" for img/number-01.jpg.
Thank you
<!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>
3 Answers
Darren Joy
19,573 PointsIs this for part 2 of the challenge?
https://teamtreehouse.com/library/organize-with-unordered-lists
I ran through it and did it with this:
<!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><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>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
The only part I added was the:
<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>
you seem to have 'a href's' in there as well which aren't asked for in this one. that code refers to clickable links and not images. Although sometimes you want your images to be clickable, but that's a different thing than what's asked for in this challenge.
Colin Marshall
32,861 PointsHi Yasir!
The instructions on the code challenge state: "...Leave the alt attributes blank, and don’t add any captions or links. Just the images!" Just remove the link/anchor tags that you have surrounding the image tags and you should be good to go!
Yasir Ali
5,005 PointsGot it, thank you Colin.
Ted Sumner
Courses Plus Student 17,967 PointsYasir, make sure you follow the directions exactly in these challenges. Your code is correct, just not what was asked for.
Yasir Ali
5,005 PointsThank you Ted
Yasir Ali
5,005 PointsYasir Ali
5,005 PointsThank you Darren