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 trial

HTML

Stanley Nkosi
Stanley Nkosi
4,233 Points

Code 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

Can you post your code?

2 Answers

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

The 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
Stanley Nkosi
4,233 Points

Thank 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.

Stanley Nkosi
Stanley Nkosi
4,233 Points

Hi Kris, Yesterday I sent the to Treehouse.I wonder if you received it.I used my wife's phone to send the code. Stanley.