Learn HTML by Building a Cat Photo App - Step 17

Tell us what’s happening:

i don’t know what they want but here is my code

<img src="https://freecatphotoapp.com " alt=“A photo of cat.”

and here is mistake
Sorry, your code does not pass. You’re getting there.

You are missing a closing (a) tag after the image.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> online!</p>
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 17

The code you have included appears to be unchanged. Can you share what you have tried?

@no_useraswell it looks like they were wanting you to nest the img element in an anchor tag (). The step was showing how you can make links out of more than just text but, images too.

Basically, in this step they are teaching how to make a link out of an image just like they taught how to make a link out of text. You just have to wrap up img element in anchor element. Use the following code:

code removed by moderator

hi @Jaskiranjot_Kaur

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like