Image is a link but code doesnt pass

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

The image is a link when I test it but cant seem to figure out why my code doesn’t pass.

  **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 cat photos.</p>
   <a href="https://freecatphotoapp.com" target="_blank"><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/96.0.4664.45 Safari/537.36

Challenge: Step 14

Link to the challenge:

Try removing the space at the end of the img?
Sometimes the tests are a bit sensitive

Thank you , I tried that but that didn’t seem to work.

Ok something might be a bit odd, i copied your code, replaced the beginning img element with it and it worked.
Maybe try that? You got it but theres some slight issue somewhere.

Edit:
found something. In the previous lessons you turn the above parahraph into a link for the word cat photos:

<p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>

But in your code this link is removed.
Removing it in mine also gives the error.

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