Learn HTML by Building a Cat Photo App - Step 15

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

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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.">
    </main>
  </body>
</html>

Your mobile information:

MI 9 - Android 11 - Android SDK 30

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

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Can you show us what you have tried? I don’t see an anchor element here.

I want to make it possible to click on the photo and go to the link

Ok, can you show us what you have tried so far?

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

You changed the img tag. You shouldn’t do that - the instructions didn’t say to make any changes to the img tag.

This part is a good start, but you are missing the href attribute.

and this back here is correct

Okey, I’m going to try

1 Like

Thank you, I succeeded

<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>

1 Like

Good working getting it passing!

1 Like

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