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 GALWEY
722 PointsMake the text inside each list item a link. The first item should link to cakes.html, the second to pies.html
need help regarding this question,
<!DOCTYPE html>
<html>
<head>
<title>Lists and Links</title>
</head>
<body>
<ul>
<li> Cakes </li><a> href="cakes.html"</a>
<li> Pie </li> <a> href="pies.html"</a>
<li>Candy </li> <a> href="candy.html"</a>
</ul>
</body>
</html>
5 Answers
Jack Spangenberg
643 Points<!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>
href
needs to be inside your <a>
tags and the <li>
tags should surround your <a>
tags.
Balazs Peak
46,160 PointsYou have to make a link out of the list elements, so everything will be inside of a list element tag. Inside will be a link tag, with an href attribute. And the attributes always go inside the tag, not after it.
Solution:
<li> <a href="cakes.html"> Cakes </a> </li>
HAFIZ AHMED
3,021 PointsYou need to set the 'href' attribute of the second <a> element to 'pies.html'. any one knows how to define by example like' <li> <a href="pies.html"> Pies </a> </li> does anyone see any mistake which I am doing let me know .pls Its not going through.
JASON GALWEY
722 PointsThank you to everyone that help me get through this solution
HAFIZ AHMED
3,021 PointsYou need to set the 'href' attribute of the first <a> element to 'cakes.html'. <li><a href="Pies.html">Pies</a></li> is some one can tell me where I am doing wrong pls. I am not getting through.
Lazarus Mbofana
10,941 Points<a href = 'cakes.html'> Cakes</a></ul>
Heidi S Wolff
12,757 PointsHeidi S Wolff
12,757 PointsI'm having the same issue in the challenge.