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 trialFloriane Girumugisha
159 PointsHow to solve this coding. I seem to not understand the question
https://teamtreehouse.com/library/html-basics-2/getting-started-with-html/lists-and-links-challenge I don't understand the question. I'm trying to answer the challenge but it doesn't work
<!DOCTYPE html>
<html>
<head>
<title>Lists and Links</title>
</head>
<body>
<ul>
<li>cakes</li>
<li>Pies</li>
<li>Candy</li>
</ul>
<a>
<a href="http://www.Cakes.html">Cakes.html</a>
<a href="http://www.Pies.html">Pies.html</a>
<a href="http://www.Candy.html">Candy.html</a>
</a>
</body>
</html>
1 Answer
Rochell Hill
10,677 PointsEach list item (Cakes, Pies, Candy) needs to be a link. Use anchor tags to do this. Example:
<li><a href="cakes.html">Cakes</a></li>
Make sure you close the anchor tag with the </a>!
Each text item in the list becomes a clickable link to an html page. So the word 'Cakes' links to a cakes page, the word 'Pies' links to the pie page and the word 'Candy' links to the candy page. Good luck!