Build a Cat Blog Page - Step 9

Tell us what’s happening:

The Text in the second li element says “Posts”. why is it giving me an error ?

edit: I forgot the closing tags on the anchor element. Found the problem.

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Mr. Whiskers' Blog</title>
    <meta charset="UTF-8" />
  </head>
  <body>
    <header>
      <h1>Welcome to Mr. Whiskers' Blog Page!</h1>
      <figure>
        <img
          src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg"
          alt="a cat peacefully sleeping"
        />
        <figcaption>Mr. Whiskers Sleeping</figcaption>
      </figure>

<!-- User Editable Region -->

      <nav>
        <ul>
          <li>
            <a href="#about">About</li>
          <li>
            <a href="#posts">Posts</li>
          <li>
            <a href="#contact">Contact</li>
        </ul>
      </nav>

<!-- User Editable Region -->

    </header>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Build a Cat Blog Page - Step 9

Hi there, welcome to the community! :blush:

You’re very close, but there’s a small issue in your code:

  1. Your <a> tags are missing their closing </a>
  2. You have extra closing </li> tags that shouldn’t be there

Here’s what you need to do:

  • Add </a> at the end of each <a> tag.
  • Remove the unnecessary </li> closing tags.

Try fixing these issues, and your code should work correctly! Let me know if you need more help. Happy coding!