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 trialStanley Nkosi
4,233 PointsCode Challenge:Lists and Links-Task 2 of 2
Code Challenge:Lists and Links-Task 2 of 2 How do you set the "href" attribute of the second <a> element to "pies.html"? Stanley
2 Answers
Jamie Reardon
Treehouse Project ReviewerThe href value is an attribute to the opening <a> tag.
An attribute starts with its name, followed by an equal sign, a pair of single quotation marks or double quotations marks that have the value of the attribute inside.
The value of a href attribute points to the location of a file/directory. In this case its pies.html
Example below:
<a href="pies.html">Pies</a>
Stanley Nkosi
4,233 PointsThank you very much Jamie for the answer.I was stuck for two full days. I am aware that some few weeks back,you came to my rescue.Thank you very much.
Jamie Reardon
Treehouse Project ReviewerYou are welcome! Happy coding!
Stanley Nkosi
4,233 PointsHi Kris, Yesterday I sent the to Treehouse.I wonder if you received it.I used my wife's phone to send the code. Stanley.
KRIS NIKOLAISEN
54,971 PointsKRIS NIKOLAISEN
54,971 PointsCan you post your code?