How do a add link to cat photo?

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

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

Challenge: Step 12

Link to the challenge:

Hey there! Welcome to the forums! :wave: :slightly_smiling_face:

What seems to be the issue? Any error messages? Something you don’t understand? The more info you give us the better we can help!


You can turn an image into a link simply by wrapping it in anchor tags. Remember earlier you wrapped “cat photos” in anchor tags to turn it into an anchor?

<a href="whatever_url"> cat photos </a>

You can do the same with an image:

<a href="whatever_url">
  <img src="whatever_src" alt="whatever alt">
</a>
1 Like