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 trialDennis Badger
Courses Plus Student 239 PointsError message that says the conditions of task 1 are not valid now
I completed task 1 and went on to task 2. I followed the video and as I was finishing the code for task 2 it gives an error message saying that the conditions of task 1 are no longer valid ?
<!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">
</a>
<li>
<a href="img/numbers-02.jpg">
</a>
<a href="img/numbers-12.jpg">
</a>
<li>
<a href="img/numbers-09.jpg">
</a>
</li>
</ul>
</section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
2 Answers
Salman Akram
Courses Plus Student 40,065 PointsHi Dennis,
Probably there were some confusion here.
<section>
<ul>
<li>
<a href="img/numbers-01.jpg">
</a>
<li>
<a href="img/numbers-02.jpg">
</a>
<a href="img/numbers-12.jpg">
</a>
<li>
<a href="img/numbers-09.jpg">
</a>
</li>
</ul>
</section>
Let me explain clearly
Task 1 - Create only three lists items
<section>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</section>
Task 2 - Inside three lists items, use images for number 01, 02, 06 with alt attributes blank. No hyperlinks like < a href >
<section>
<ul>
<li><img src="img/numbers-01.jpg" alt =""></li>
<li><img src="img/numbers-02.jpg" alt =""></li>
<li><img src="img/numbers-06.jpg" alt =""></li>
</ul>
</section>
Hope that helps. :)
Ted Sumner
Courses Plus Student 17,967 PointsThe original code also has issue with the list.
<!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">
</a>
<li>
<a href="img/numbers-02.jpg">
</a>
</li>
<li>
<a href="img/numbers-12.jpg">
</a>
</li>
<li>
<a href="img/numbers-09.jpg">
</a>
</li>
</ul>
</section>
<footer>
<p>© 2013 Nick Pettit.</p>
</footer>
</body>
</html>
My notes are not indented.