Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
the code keeps on getting rejected what could be the problem?

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

    <p> See more cat photos in our gallery <a href="https://freecatphotoapp.com">cat photos</a>.</p> 

<!-- User Editable Region -->

      <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:

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

Link to the challenge:

The first occurrence of the phrase: cat photos should have been made into a link.

In the p element, the text : cat photos, should be turned into a link. You need to wrap an anchor element around it. In the opening anchor tag, you’ve got to add a href attribute, the value of which will be the following;
After the word gallery, is where the p element ends.
You need to delete the extra words after the word gallery, around which you’ve wrapped the anchor element. Before the word gallery, there’s only one phrase of ‘cat photos’. That needs to be wrapped by an anchor element.

I hope this helps.
Thank you.

1 Like

It worked thank you so much .

I’ve wasted WAY too much time on this question #12. Here’s my code:

See more cat photos in our gallery. cat photos

The link works, but I continue to get an error code- "After nesting the anchor (a) element, the only p element content visible in the browser should be -See more cat photos in our gallery. " (That’s the only “p” element content visible)

“Double check the text, spacing, or punctuation of both the p and nested anchor element.”

What’s the problem with the code? (And yes, I’ve read the suggested article) TIA

This topic has been solved

Only reply here if:

  • You have additional details
  • The solution doesn’t work for you

If you have an unrelated issue, please start a new topic instead.

1 Like

Start a new topic regarding your issue and give the source code too. It’ll help us to help you.

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