I need help on html step 12

I dont know how to make the link’s text in the ‘p’ element
to be “cat photos”

  **Your code so far**

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>
    <a href="https://freecatphotoapp.com"> click here to view more cat photos</a> 
             </p>
    <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/101.0.0.0 Safari/537.36

Challenge: Step 12

Link to the challenge:

You’re almost there.

The p element should show the same text in the browser, but the words cat photos should now be a link.

But you put all of the text in the link, you have “click here to view more cat photos” as your link text, they only want “cat photos”. That other text should come before the link.

When I fix that, it passes for me.

1 Like

Thank you, this helped me a lot!

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