Learn HTML by Building a Cat Photo App - Step 15

I’m just new and confused as to what I’m doing wrong. The step is to attach the link (and surround the image in anchor tags). I’m really just not sure where to go here, and the program’s advice is not helpful.

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."><a/>


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Safari/605.1.15

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

Link to the challenge:

Click on Restart Step.
This will fix everything so that you only have the img line to work with.
(your code right now shows you touched the previous line above the img which you don’t need to do for this step so once you restart, the code will return to normal)

At this point you can use this code with a minor tweak:

  • fix your closing tag as it should be </a>
  • add a > just infront of the <img
    (to its left)

And that’s it. Copy this fixed code into place (deleting the given img line of code in the process) and you should be good.

Some things to notice:
All tags begin and end with angled brackets < and >
closing tags begin with </ and end with >

1 Like

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