Need help understanding where i went wrong with this anchor element

could really use some help understanding why my code is not correct when it comes to anchoring introduction, habitat and media… when I let the system input the solution I review it and see no changes from the code I input.

Hello, and welcome to the forums!

Are you on this lesson? https://www.codecademy.com/courses/learn-html/lessons/html-document-standards/exercises/linking-same-page-html

If this is the one and you’re having trouble passing Task #2, then it’s because the tests are extra picky on this one. I helped someone a couple months ago and it turned out that the letter casing mattered for the link text.

      <li><a href="#introduction">Introduction</a></li>
      <li><a href="#habitat">habitat</a></li>
      <li><a href="#media">media</a></li>

Your ids being all lowercase are good, but they want you to capitalize the first letter of each link text. You have it correct with “Introduction” but you need to still change Habitat and Media

If this wasn’t the lesson you were on, can you give more details about the message you’re getting and what lesson you’re on?

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.