Step 12 of the cat photo app

Tell us what’s happening:

I have looked at other peoples it and copied it exactly I do not know what is wrong it keeps saying-

-“After nesting the anchor (a) element, the only p element content visible in the browser should be See more cat photos in our gallery. Double check the text, spacing, or punctuation of both the p and nested anchor element.”

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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 -->

      <a href="https://freecatphotoapp.com">link to cat pictures</a>
      <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/129.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

you currently have two “cat photos” on the same line.
You should have made the first one into a link without repeating the phrase.

1 Like

that is what i tried to do but the code is not doing it.

okay, try to read this post

if you are still stuck after reading the post, then copy the code and paste it into your next reply so we can see what you have done so far.

To make a link inside a p element you nest an a element around the text you are making into a link
For example:

<p>I think <a href = "freecodecamp.org">freeCodeCamp</a> is really great!
1 Like

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