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 trialFederico Trevino
503 Pointsi have my code correct but it keeps saying that it is wrong still
I have no clue what is wrong can someone please help me?
<!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="">
<p></p>
</a>
</li>
<li>
<a href="img/numbers-02.jpg">
<img src="img/numbers2-02.jpg" alt="">
<p></p>
</a>
</li>
<li>
<a href="img/numbers-06.jpg">
<img src="img/numbers-06.jpg" alt="">
<p></p>
</a>
</li>
</section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
2 Answers
Mindy Sandilands
15,743 PointsThe only thing I see that may be throwing the code off is that you may have deleted your closing bracket for the unordered list in your section element.
Just before the section closing bracket try inserting </ul> . Hope this helps. Mindy
Rich Bagley
25,869 PointsHi,
You have added more than the challenge requires and so it is marking it as incorrect:
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!
It doesn't ask for paragraph (p
) tags or anchor (a
) tags wrapping the images. Remove these leaving only the list items containing image tags and you should be sorted :)
-Rich
Federico Trevino
503 Pointsthank you for your help but it says that to make sure that i include an image tag that displays "img/numbers-01.jpg"
Rich Bagley
25,869 PointsHi,
It does, which you've done. However, it doesn't mention to include the anchor or paragraph tags as you have.
So where you have:
<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt="">
<p></p>
</a>
</li>
You would only need:
<li>
<img src="img/numbers-01.jpg" alt="">
</li>
You would then repeat this format for the other 2 list items.
-Rich
stebbinsnatalie
325 Pointsstebbinsnatalie
325 Pointsonly thing I see is on img 01 the closing anchor element is out of place and I see no closing unordered list element. But other than that I don't see anything wrong.