Step 14 turm img to link

Hei,
I need to turn img to link in html …it’s not working , error is missing Url or typo problem. Can you help me, here is my code…


<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 herf='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>
</body>
</html>

Challenge: Step 14

Link to the challenge:

heres a paragraph wrapped in an anchor tag. this turns the text hello world into a link to facebook… how would you do it with a <img> instead of a <p>

<a href="https://facebook.com"><p>hello world</p></a>
1 Like

Now i have an other error : i need to have only one (a) opened

  <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a></p>
  <a 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/>

I don’t know how but i passed the step 14 ,thx for your help

everything you put between your <a> tag, gets turned into a link</a> :slight_smile:

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