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 trialHannah Gray
2,318 PointsI need help with this, I put the anchor tags in between the list items and it still isn't correct.
<!doctype html>
<html>
<head>
<title>Al's Restaurant</title>
</head>
<body>
<ul class="nav">
<li><a href="#">Home</a></li>
<li><a href="food-gallery.html">Food Gallery</a></li>
<li><a Menu></a></li>
</ul>
</body>
</html>
2 Answers
Adam N
70,280 PointsIf I take away the href
attribute of the first list item it would look like this:
<li><a>Home</a></li>
which is the format you want for this Menu list item. Mimick that
Joseph Yhu
PHP Development Techdegree Graduate 48,637 PointsMove the Menu
to outside the opening anchor tag.
Hannah Gray
2,318 Pointsso should it read, "<li> Menu <a></a></li>"?
Adam N
70,280 PointsHannah Gray nope, see my answer
Joseph Yhu
PHP Development Techdegree Graduate 48,637 PointsUh no.... it should read <li><a>Menu</a></li>
.
(Replying to Hannah)
Joseph Yhu
PHP Development Techdegree Graduate 48,637 PointsJoseph Yhu
PHP Development Techdegree Graduate 48,637 PointsThat's essentially what I said, but I suppose I wasn't clear enough.
Edit: The
<li><a>Home</a></li>
part at least, withHome
replaced withMenu
.