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 trialLuke Watters
1,774 Pointstask 2 of html basics
I keep getting an error for "pies.html", any ideas where I'm going wrong?
<!DOCTYPE html>
<html>
<head>
<title>Lists and Links</title>
</head>
<body>
<ul>
<a href="cakes.html"> <li>Cakes</li> </a>
<a href="pies.html"> <li>Pies</li> </a>
<a href="candy.html"> <li> Candy</li> </a>
</ul>
</body>
</html>
1 Answer
Shay Paustovsky
969 PointsHi Luke,
You've almost got it, There are a few syntax errors.
the <a></a> element isn't a direct descendant of the <ul></ul> hence it cannot act as a list item.
rather the order should be: (<li><a href="cakes.html">Cakes</a></li> )
UL - stands for an unordered list, only LI is a descendant of it and can markup and list-item.
So inside the code should look like this :
<ul>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
</ul>
I count on you that you can complete the blank fields and hopefully I have assisted you.
Have a nice day,
Shay
Luke Watters
1,774 PointsLuke Watters
1,774 PointsYou're a lifesaver, thank you!