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 trialLarry Allison
315 PointsHey Need Help On something
How To Nav on A ? !!!!!
Larry Allison
315 PointsIt is telling me to put the word Portfolio on it of the list that is
Larry Allison
315 PointsYou still there
1 Answer
hum4n01d
25,493 PointsIf I understand correctly, you are trying to put an anchor (link or a) tag within a nav tag? You would do it like this:
<nav>
<ul>
<li>Portfolio</li>
<li>About</li>
<li>Contact</li>
</ul>
</nav>
Larry Allison
315 PointsIt is telling me to put the Word Portfolio on it?
hum4n01d
25,493 PointsWho is telling you to do what?
Larry Allison
315 Pointsit is telling me to put it on there for the test
hum4n01d
25,493 PointsWhich test?
Larry Allison
315 PointsHow to Make a website
Larry Allison
315 Pointsyou still there
hum4n01d
25,493 PointsOk, but which code challenge within How to Make a Website
Larry Allison
315 Pointstask 2
hum4n01d
25,493 PointsLarry Allison
315 PointsYes but the 2 task
hum4n01d
25,493 PointsUpdated answer. I think the problem was that you didnโt wrap the links in list item tags (li).
The structure is just <li>[text]</li>
I think later in the challenge it will have you add links which would look like this:
<nav>
<ul>
<li><a href=โindex.htmlโ>Portfolio</a></li>
<li><a href=โabout.html>About</a></li>
<li><a href=โcontact.html>Contact</a></li>
</ul>
</nav>
Larry Allison
315 PointsOk thanks
Larry Allison
315 PointsLarry Allison
315 Pointsyou still there
hum4n01d
25,493 PointsPlease mark my comment as best if it solved your problem. Thanks!
Dan Oswalt
23,438 PointsDan Oswalt
23,438 PointsCan you clarify? Are you trying to select the 'a' tag that is within a 'nav'?