Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
Describe your issue in detail here.


“Your code should only contain one anchor (a) element. Remove any extra anchor elements.”

– It looks like there is only one ‘a’ element and still this message comes up. I have tried closing the element with ' and the same message appears. Help would be appreciated. Thank you.

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <a href="https://freecatphotoapp.com">cat photos

    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
  **Your browser information:**

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

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

Link to the challenge:

Hey! In this challenge, you’re supposed to turn “cat photos” that’s already inside of the p tag into a clickable link. However it looks like you removed the p tag altogether which is causing the bug in your code.

I would suggest you to click on “restart step” button and then try again. If you face any problems, let us know!


I have made some changes;

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

The HINT this time is: “After nesting the anchor (a ) element, the only p element content visible in the browser should be Click here to view more cat photos. Double check the text, spacing, or punctuation of both the p and nested anchor element.”

I cannot find the issue, I have checked the spacing and typing.

it looks like you missed a . thats supposed to go after the closing a tag.

Wouldn’t let me put . after a closing tag. Just made a few changes though and it worked.

Is your problem now solved?

Yes It’s been done thanks

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