Build a Cat Blog Page - Step 9

Tell us what’s happening:

  1. Your second anchor element should have the text of Posts inside your second li element.
  2. Your second anchor element should have an href attribute set to “#posts”.
  3. Your third anchor element should have the text of Contact inside your third li element.
  4. Your third anchor element should have an href attribute set to “#contact”.

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"</a>About</li>
          <li><a href="#posts"</a>Posts</li>
          <li><a href="#contact"</a>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/135.0.0.0 Safari/537.36

Challenge Information:

Build a Cat Blog Page - Step 9

Hi. Your anchor elements need to wrap around the text as instructed. You haven’t put closing tags on your opening anchor elements.

Note - its best to talk about how you got stuck figuring out how to fix your code

I have done it this way which i believe is the right way but I am stuck with it.

hi @asalaam2022

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

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