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 trialAvery Pierce
1,869 PointsI would like help with this question and the error message that I am getting.
https://teamtreehouse.com/library/html-basics-2/getting-started-with-html/lists-and-links-challenge
<!DOCTYPE html>
<html>
<head>
<title>Lists and Links</title>
</head>
<body>
<ul>
<li><a href cakes.html> cakes</a> </li>
<li><a>Pies</a></li>
<li><a>Candy</a></li>
</ul>
</body>
</html>
3 Answers
Unsubscribed User
Front End Web Development Techdegree Student 33,900 PointsHi Avery,
it's the little things that often create an error...
Your code is pretty nice but there is one little thing missing between the "href" attribute and "cakes.html" (plus around "cakes.html". Can you find it?
Otherwhise I will tell you... ;-)
Happy coding!
Nils
Avery Pierce
1,869 Pointscan you tell me why this code is not running properly? It seems the be fine in the text on the page, but it is giving me an error message.
Kevin Gates
15,053 PointsAvery Pierce Any attributes of an element need to have their values wrapped in quotes. Attributes of HTML elements operate on a key : value pairing. So "key" is the name of the attribute whereas "value" is the value / setting for that particular attribute. In HTML, the key is inside of the opening tag, and that key's value is assigned to its key via `="____"
In this instance, for the a
tag, it has an href
attribute.
So an a tag could look like this:
<a href="_____">YourLink</a>
Now you just need to update your code to match the pattern above.