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 One Solution

Does an unordered list nested in the <nav> tag always have to be anchored?

ie: <ul> <li><a href="#">Blah Blah</a></li> </ul> OR <ul> <li>Blah Blah</li> </ul>

Hi Travette! -

No, text inside a <nav> tag does not always have to be anchored. For example, the following code is perfectly fine:

<ul>
     <li>Blah Blah</li> 
</ul> 

Here is more info about anchor tags for your reference.

Happy coding!

1 Answer

While not all of your text needs to have links please take note on what the aria role of the nav tag is for…

β€œThe navigation landmark role is used to identify major groups of links used for navigating through a website or page content.”

If you are not putting any anchor tags inside your nav then it is semantically the wrong tag choice. ;-)