Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

I keep getting an error message for the p element saying that I can only have one (a) anchor point and cant get it to look right without it set up like this.

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
  <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.</p>
    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
  </main>
</body>
</html>
  **Your browser information:**

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

Challenge: Learn HTML by Building a Cat Photo App - Step 12

Link to the challenge:

You never closed this anchor element, which is causing problems with the tests.

Closed the <a anchor point within the p?

You didn’t add your a closing tag

<p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.</p>
like this?

Yes. An anchor element requires an opening and closing tag, each with <>. You are missing the closing tag.

Nope. That still has no closing anchor tag. Only a closing p tag.

<p>Click here to view more <a href="https://freecatphotoapp.com"</a>cat photos.</p>

<p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.</a></p>
both look right but are still telling me I have to many anchors

This is close. The anchor text should not have a .

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Before the p closing tag add the a closing tag

Can we see the full code

1 Like
<html>
  <body>
    <h1>CatPhotoApp</h1>
    <main>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.</a></p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>

You still should not have a . in the anchor text

It does not work if I delete the a.

  <p>Click here to view more <href="https://freecatphotoapp.com">cat photos.</p>

I did it again .It did worked out perfect.
Restart and try again.
This time don’t delete a

If still doesn’t work try another browser

That was it lol, I refreshed and it worked, but I had to get rid of the period at the end of photos.

I did not say to delete the </a>. I said delete the period