I am stuck on lesson 14 cat photo app

I don’t know how to turn the image into a link.

  **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 <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
    <a href  img  src ="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
  </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/102.0.5005.63 Safari/537.36

Challenge: Step 14

Link to the challenge:

Alright but first of all try resetting your code if I were you
Your opening anchor tag needs the second leg e g a not just <

Then you need to also open the img tag

e.g

<a href""><img src="" alt=""></a>

You should leave the image element you wrote alone. I would reset the code. To turn anything into a link, you need to put an opening <a...> tag before the thing that will become a link and a closing </a> after.

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