Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
says i need closing tag but when i add one it says it shouldnt be one

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>

<!-- 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."> <a href="https://freecatphotoapp.com>"

<!-- User Editable Region -->


Your browser information:

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

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

Link to the challenge:

It doesn’t look like you are surrounding your image with your link.

not sure what you mean by that. i added after but then it says it should be only one and to remove extras.

The instructions want you to surround your image with the necessary tags to turn it into a link.

As an example, here is a p element surrounded by a div element:

<div><p>Hello World~!</p></div>
1 Like

Turning the img into a link probably needs to look a lot like turning the words ‘cat photos’ into a link.

1 Like

sorry still not sure am i hopefully theres another way to explain? i added the element in the correct spot right?

No, you didn’t put the anchor element in the right spot.

What did you do to put anchor tags around the words cat photos? Where did the opening anchor tag go compared to the word cat?

The opening tag <a href=...> goes before the thing you want to be a link, right?

i change the opening tag and added it before the img but still not correct.

What is your updated code?

1 Like

Copy your code out of the editor. Create a new post and click the </> button in the post toolbar, then paste in the code between the backticks.

Turning something into a link might be a bit of a misnomer.

A link can have content, it is usually text but it can be something else, for example, an image. The link content is whatever is between the starting and closing tags <a>the content</a>.

For this challenge, the content should be the image in the starting code.

1 Like

had to go to work im back now but still learning how to use everything this is my second day but thank yall fo being patient

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