Trying to turn an image into a link using necessary element tags

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

So far I’m on step 14 of this course. Where I am struggling is in trying to turn an image into a link using surrounding element tags. I know there’s a hint there but I’m not understanding. I tried to enter the anchor within the image element at the beginning but that didn’t do anything.

  **Your code so far**

    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a target="_blank" href="">cat photos</a>.</p>
    <img src="" alt="A cute orange cat lying on its back.">
  **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:

Hi @chrisgomad ! Welcome to the forum :wave:

Anchor tags in HTML look like this:
<a href="">Something you want to turn into a link</a>

Try to surround the existing img tag with opening and closing a tags. Don’t forget to give it a href attribute with the value .


thank you, it worked!

1 Like

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