Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Basics Getting Started with HTML Lists and Links Challenge

You need to set the 'href' attribute of the first <a> element to 'cakes.html'.

You need to set the 'href' attribute of the first <a> element to 'cakes.html'.

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>Lists and Links</title>
  </head>
  <body>
  <ul>
    <li> Cakes.html</li>a>
    <a>
      <a href="https://teamtreehouse.com">treehouse</a>
      <li><a href="cats.html">cats</a></li>
       <li><a href="dogs.html">dogs</a></li>
  <li> Pies.html</li>a>
      <a>
      <a href="https://teamtreehouse.com">treehouse</a>
       <li><a href="cats.html">cats</a></li>
       <li><a href="dogs.html">dogs</a></li>
 <li>  Candy.html</li>a>
        <a>
      <a href="https://teamtreehouse.com">treehouse</a>
       <li><a href="cats.html">cats</a></li>
       <li><a href="dogs.html">dogs</a></li>
    </ul>
  </body>

1 Answer

Kevin Gates
Kevin Gates
14,826 Points

Under each <li> item You have an extra <a> tag and partial a tag: </li>a> which is breaking your code.