Learn HTML by Building a Cat Photo App - Step 12

Describe your issue in detail here.

Hello everyone. I am very new to coding and I got stuck on this part. I am trying to insert an “a” anchor in the “p” element in order to add a link to a specific set of words, and I haven’t quite figured it out yet. When I tried to insert it, the entire set of words got hyperlinked instead of just the words “cat photos.” It even adds the words “cat photos” to the already-made sentence. :joy: I appreciate any help. Thank you all in advance.
Your code so far

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

<!-- User Editable Region -->

      <p>  <a href="https://freecatphotoapp.com"> cat photos See more cat photos in our gallery. </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.">

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) 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:

Welcome to the community!
Here are examples of how the code should appear.

Cat Photo Step 12 Example 1

Example using big dog as the words to anchor.

< p> The < opening anchor> big dog < /closing anchor> raced across the grass for the ball. < /p>

Example 2

< element> Click here to go to freeCodeCamp.org is a link with the text click here to go to freeCodeCamp.org.< /element>

I hope this helps you!
Happy coding! :slight_smile:

Thank you so much. I seem to have done it, however, the program is not counting it as right. Could there be another mistake that I am overlooking?

I don’t know how to add another screenshot of the code, as I did at this post’s beginning, so I apologize.

It may work if you remove the space after the photos. Spacing can be the unforeseen issue in coding. And, it can be a pure pain to find it at times.
I just tried it. :slight_smile:

Oh my goodness thank you so much. You are amazing. I didn’t know something as small as spacing could make the whole code not work. Thank you for teaching and helping me.:hugs:

1 Like

You are very welcome!
We are a community of people. We are here to help each other learn coding together. Truly, Free Code Camp is a blessing for all of us!

Happy coding! :slight_smile:

1 Like

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