Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
it says 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>
      <a href="https://freecatphotoapp.com">link to cat pictures</a>

<!-- 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.">
    </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/113.0.0.0 Safari/537.36 OPR/99.0.0.0

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

Link to the challenge:

Hello!
You almost have it!
There was not any need to create any new words.
Just place the anchor on each side of the words cat photos in the p element.

Nice progress!

1 Like

Mind explaining a bit more?

Sure!
Only use the original text within the p element to anchor the required words.

Starting point for this step.

See more cat photos in our gallery.

No need to add any outside of the p element. Just do as it did but inside the p element around those same words.
Example: < p > Cats are wild about catnip. < / p >
If I wanted to anchor the words wild about in this text, I would just put the a anchor and href before the word wild, and the closing a anchor after about.

It would look like this < p > Cats are < a href = " xyz . com " >wild about < / a > catnip. < / p >

2 Likes

Thank you!! this was very helpful

3 Likes

Thank you I was tagging along :sweat_smile:

1 Like

You are very welcome!