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

Hadassah Davis
Hadassah Davis
1,478 Points

You need to set the 'href' attribute of the first <a> element to 'cakes.html' what does this mean? I am very confused.

what does this mean? I feel very stuck.

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

2 Answers

tomd
tomd
16,701 Points

Hi, you haven't got any <a> tags in your code. Nest <a> tags in <li> tags like this:

<li><a>Cakes</a></li>

Then add the 'href' attribute to the <a> tags.