Step 14 changing image into link

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

  **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 href='https://freecatphotoapp.com' alt="A cute orange cat lying on its back."target="_blank"> cat photos </a>.
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></p>
  </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/101.0.4951.67 Safari/537.36

Challenge: Step 14

Link to the challenge:

The code provided below is not working . Please guide for this step.

Just put the <img> element inside the anchor elements. basically <a href="somelink"><img/></a>

1 Like

I already did that its not still working. May be its a typo, could you identify it please.

well, show your code then, because in this snippet you only “linked” cat photos, but not the img element

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

i dont know, i copied your code and its working for me, maybe refresh the page( heard it can be buggy sometimes)

Nope it gives the same feedback that add an opening tag for anchor element.

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