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

HTML HTML Basics Getting Started with HTML Lists and Links Challenge

why is it saying task 1 is no longer passing/

it keeps coming up with task 1 is no longer passing when I check work for task 2 even though it tells me it's correct??

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>Lists and Links</title>
  </head>
  <body>

  <ul>
    <li>Cakes</li>
   <li>Pies</li>
    <li>Candy</li>
    </ul>

  </body>
</html>
Damien Watson
Damien Watson
27,419 Points

Could you post what you tried for task 2? This is the code for task 1 (and it passes task 1).

1 Answer

Shayne Laufenberg
Shayne Laufenberg
4,213 Points

Well the problem here is that the current code you've shown would only complete Step 1 for the challenge, in Step 2 they ask you to add anchor tags to the elements inside the list. Here is the full solution to that Challenge so you can correct the mistakes.

Solution:

<!DOCTYPE html>
<html>
  <head>
    <title>Lists and Links</title>
  </head>
  <body>
    <ul>
      <li><a href="cakes.html">Cakes</a></li>
      <li><a href="pies.html">Pies</a></li>
      <li><a href="candy.html">Pies</a></li>
    </ul>  
  </body>
</html>