Step 14 im not sure what's wrong

Tell us what’s happening:
step 14 requires me to turn the image into a link. The preview says that ive successfully done it however it does not allow me to take the next step

  **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>
    <a target="_blank" 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.">
  </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/99.0.4844.51 Safari/537.36

Challenge: Step 14

Link to the challenge:

1 Like

Hi, @kariel, and welcome to the forum!

I think that the closing tag for your anchor element is missing.
Try adding that closing tag and then submit your code again.

hi thank you so much for replying. i added the closing tag for the attribute but it still doesnt accept it

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

@KittyMac i’ve figured it out. the image needs to be inside the attribute

<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>
  <a target="_blank" 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>
</main>

That closing tag’s not quite in the right place, I’m afraid.

You need to nest the image element inside the anchor element.
So the anchor element’s closing tag needs to be after the image element.

Also, don’t forget to close the anchor element’s opening tag - <a>

2 Likes

yes yes thank you so much for the tip :slight_smile:

You got there by yourself - well done!

1 Like