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

tor magne brekken
tor magne brekken
4,080 Points

Fix your site!!!!!

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

</body> </html>

that is right yes? the sites says that i dont have a link on cakes.html........ -.-

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

  </body>
</html>

3 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

tor magne brekken Hi there! You're actually doing quite well. The other answer left here by Aakash Srivastav is partially correct. You have forgotten to close a tag, but it's the anchor tags that arenΒ΄t being closed. This is true for all three of your list items.

You wrote:

<li><a href="cakes.html">Cakes</li>

But you meant to write:

<!-- note the closing </a> after Cakes -->
<li><a href="cakes.html">Cakes</a></li>

Hope this helps! :sparkles:

Aakash Srivastav
seal-mask
.a{fill-rule:evenodd;}techdegree
Aakash Srivastav
Full Stack JavaScript Techdegree Student 11,638 Points

Hey , you have not closed that li tag containing all the three li tag inside it.
Try this :

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

  </body>
</html>
Jackie Santana
Jackie Santana
7,403 Points

you forget the closing anchor tag </a>

for example it should look like this <li><a href="cakes.html">Cakes</a></li>

that will create the actual link your looking for.