Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.
please creative minds, how can i turn the whole photo into a link, and which am i expected to use please

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

<!-- 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

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

Link to the challenge:

1 Like

You have a syntax error in the img tag


Hello, perhaps take a look at the previous lesson before this one and do the same thing you did for that lesson around the img tag. Hope this helps :slightly_smiling_face: :fist:t5:

1 Like

please elaborate, which syntax am i expected to use please

please what element tag am i to use??

fix your img… I didn t look the rest of the code…

To turn the image into a link, you can wrap the (img) tag with an (a ) tag and set the href attribute of the (a) tag to “https://freecatphotoapp.com”. Hope this helps…

1 Like

Here this step is telling you to convert a img into a link

And you can convert any img into a link by just wrapping into an anchor tag.

<a href="link">
<img src="link">

Hope you understand.

1 Like

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