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

Michael Dockery
Michael Dockery
486 Points

I swear I'm typing this code in correctly. Where is my mistake?

Can someone check my lines to see where my mistake is?

Stone Preston
Stone Preston
42,016 Points

you will have to post your code for anyone to be able to see it

2 Answers

Stacy Fabian
Stacy Fabian
2,246 Points

Michael,

To include your code you can use the "ticks" button three times (they show up when you hit the key to the left of the #1 key, the one with the tilde on it) on the top line...then copy your code section in...then do a return and another set of three ticks.

That way we can help you because we can see your code. (This confused me at first too).

This is just a test.

<html>
</html>

and this is another test

<nav>
      <ul>
          <li><a href="index.html" class="selected"> Portfolio</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="contact.html">Contact</a></li>
      </ul>
</nav>

Thank you.

Wilfredo Laboy
Wilfredo Laboy
2,019 Points

Hello Michael,

I think I understand where you are having difficulty without even seeing the code. Try placing this in your html code.

<nav>
      <ul>
          <li><a href="index.html" class="selected"> Portfolio</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="contact.html">Contact</a></li>
      </ul>
</nav>

Hopefully that helps!