Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
I am stuck, I have tried so many times, but I can’t seem to crack it.

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

<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</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/115.0.0.0 Safari/537.36 Edg/115.0.1901.188

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

Link to the challenge:

Don’t add any new text to the p element. You added a second “cat photos” to the end of the p element. You don’t want to do that, so get rid of it.

You want to turn the existing “cat photos” that is already there in the middle of the p element into a link.

I’m still a bit confused so the end of the p element of “cat photos” I get rid of? what do I do next? What I have now is

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

Yes, get rid of the extra words “cat photos” you added to the end of the p element. You should not add any extra text. You are only adding an anchor element (i.e. opening and closing a tags).

Look at how you turned the words “link to cat pictures” into a link in the previous steps:

<a href="https://freecatphotoapp.com">link to cat pictures</a>

You added an opening a tag before those words and a closing a tag after those words. That is how you turn anything into a link. So you need to do the same thing to the words “cat photos” in the p element.

What do I do with the p element?

See more cat photos in our gallery. do I close the p element in the end

and then add <a href=“link”

Nothing. The p element itself is perfectly fine the way it is.

I would restart the step to get the original HTML back. Then, the only thing you want to do is add one opening a tag and one closing a tag so that the words “cat photos” turn into a link. If you do anything else other than that then you won’t pass the step.

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