Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
My (a) element should have a closing tag. Closing tags have a / just after the < character. However im not quite where it needs to be written.

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."> <a href="https://freecatphotoapp.com"

Your mobile information:

SM-G998B - Android 13 - Android SDK 33

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

Link to the challenge:

1 Like

you’re right about the anchor element needing a closing tag. try looking at a previous anchor you’ve used for the ‘cat photos’ text and apply this to your img element.


Great work! Your ‘img’ tag should be in between the opening ‘a’ tag and closing ‘/a’ tag.


Thank you for the responses. I’ve tried to follow the instructions above but to no avail. I shall keep trying :slight_smile:


you’re pretty close to the answer in your original post. You’re trying to surround the img element with an anchor(a). use this as an example:
<a href="www.freecatphotos.com">freecatphotos</a>

think about where you’re image element needs to be in relation to your anchors


You did it but only one mistake

<a href="link">
<img href="link">
Hope u understand :blush:


Thankyou all so much i finally got it!


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