Problem with HTML lesson 10 of 14

“Did you open the <a> tag before Introduction and close it after Introduction?” Got this error but not sure what I did wrong. Here is link to my work.

https://www.codecademy.com/courses/learn-html/lessons/html-document-standards/exercises/linking-same-page-html

Thanks

Here is part of my code. I bolded where they say the problem is.

Brown Bears
<ul>
  ***<li><a href="#Introduction">Introduction</a></li>***
  <li><a href="#Habitat">Habitat</a></li>
  <li><a href="#Media">Media</a></li>
</ul>
<div id="Introduction">
  <h2>About Brown Bears</h2>
 
  >
  <h3>Species</h3>
  <ul>
    <li>Arctos</li>
    <li>Collarus</li>
    <li>Horribilis</li>
    <li>Nelsoni (extinct)</li>
  </ul>
 
</div>
<div id="Habitat">
  <h2>Habitat</h2>
  <h3>Countries with Large Brown Bear Populations</h3>
  <ol>
    <li>Russia</li>
    <li>United States</li>
    <li>Canada</li>
  </ol>
  <h3>Countries with Small Brown Bear Populations</h3>

</div>
<div id="Media">
  <h2>Media</h2>
 
</div>

H there,

So, the courses are very picky. Notice that step two says this:

Wrap the text of each list item in the unordered list in an anchor element. Each anchor tag should link to the corresponding <div> on the page (The <a> element that contains the text “Introduction” links to #introduction ).

In your own code, you have #Introduction instead of #introduction. Try changing the capitalization and see if that works!

3 Likes

Thank you so much that worked. Marked your reply as solution.

David Carrick

2 Likes

I came here for the exact same question, thank you kirativewd!

1 Like

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