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 How to Make a Website Creating HTML Content Create Navigation with Lists

Matthew White
Matthew White
9,870 Points

Stuck on task 1 of 3

I keep getting the error "Bummer! Be sure your <nav> element is directly after the link in the header" but I'm sure that's what I'm doing. The snippet of my code is like this: '''html <header> <a href="index.html"> <nav> <ul><li></li></ul> </nav> <h1>Nick Pettit</h1> <h2>Designer</h2> </a> </header> '''

I've tried the above with various spaces and in different positions, but I can't work out why it's not working. Anyone got any bright ideas? Any help much appreciated.

Matt

3 Answers

Matthew White
Matthew White
9,870 Points
  • after the '''html </a> '''
Matthew White
Matthew White
9,870 Points

No worries, I've sorted it now! It had to be after the </a>, which isn't what I'd call 'directly after the link'! oh well.