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 trialWilliam Guasch
1,705 PointsIt's telling me I need to set the second attribute to 'pies.html' which I seem to have unless I'm missing something??
<!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>
1 Answer
Jennifer Nordell
Treehouse TeacherHi there, William Guasch! You're really close. The problem, as it so often is, is on the previous line. An anchor tag is not "self-closing". Each list item you have should have an <a>
and a </a>
.
So this:
<li><a href='cakes.html'>Cakes</li>
Should look like:
<li><a href='cakes.html'>Cakes</a></li> <!-- Note the </a>
That should be true for each line.
Hope this helps!
William Guasch
1,705 PointsWilliam Guasch
1,705 PointsThank you, after looking at a lot of the other similar posts I figured it might be something small and silly that I was missing. Very much appreciate the help!