Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.
I’m on step 15, i put the anchor element with the href,the strings, the given code above the img value and its giving me an error. I tried putting the anchor inside the ing element and it gives me an error.
Your code so far

      <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="https://freecatphotoapp.com">  <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; LM-Q730) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Mobile Safari/537.36

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

Link to the challenge:

You seem to be missing something. Check your code again.

Welcome to our community!
You should nest your ‘img’ element within ‘a’ tags. You have forgotten to add the closing ‘a’ tag at the end of the code line:

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

You also have an unnecessary space between the tag

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