Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Hi. So I am trying to “Turn the image into a link by surrounding it with necessary element tags. Using (wont let me add link) as the anchor’s href attribute value.”
I thought I had this right but it says that I need only one opening anchor tag, so I am really confused. I thought that I only had one opening a tag.

Your code so far

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

 <a> <img href= 'https://freecatphotoapp.com' </a>


  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36 Edg/104.0.1293.70

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

Link to the challenge:

You shouldn’t have two img elements.

This is an example of a correct anchor element. You should have an anchor element like this one, but with the full img element in place of the text ‘cat photos’

Thanks! Wasn’t expecting a response that fast! Thought I would have to take a break till tomorrow.

1 Like

Here’s where I am now, I think I am closer though.

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

Hint says my anchor element should link to https://freecatphotoapp.com.
What should I do from here?

How did you set where this anchor element links to?

Funny story… I have no idea.
I may not have linked it to anything -_-

Ok, let’s go back and look at that Step

Okay, I think I misunderstood and did link it.

Assuming it is linked, how would I tell?

It would pass the test? Lol

What’s the latest version?

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