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 trialJason Wheeler
2,544 PointsHow to correct format and create a link inside an unordered list???
<!DOCTYPE html>
<html>
<head>
<title>Lists and Links</title>
</head>
<body>
<ul>
<li><a ref=cakes.html>Cakes</l>
</ul>
</body>
</html>
2 Answers
KRIS NIKOLAISEN
54,971 PointsGabriel Pierce-Lackey shouldn't the closing </a> tag come before the closing </li> tag
<!DOCTYPE html>
<html>
<head>
<title>Lists and Links</title>
</head>
<body>
<ul>
<li><a href="cakes.html">Cakes</a></li>
<li><a href="pies.html">Pies</a></li>
<li><a href="candy.html">Candy</a></li>
</ul>
</body>
</html>
Gabriel Plackey
11,064 PointsThe correct syntax in an anchor tag for the link is href. Missing that h is causing the link to not work. You are also missing the other items in the list.
<!DOCTYPE html>
<html>
<head>
<title>Lists and Links</title>
</head>
<body>
<ul>
<li><a href="cakes.html">Cakes</li></a>
<li><a href="pies.html">Pies</li></a>
<li><a href="candy.html">Candy</li></a>
</ul>
</body>
</html>
Gabriel Plackey
11,064 PointsGabriel Plackey
11,064 PointsYes, most definitely, thank you for catching that.