Step 14 - Turn the image into a link

Unable to figure out how to turn the image into a link via the href attribute. Any ideas?

  **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/ Safari/537.36

Challenge: Step 14

Link to the challenge:

You’ve already turned the words “cat photos” into a link in the p element above the image. You did this by wrapping the words in opening and closing a tags and then adding an href to the opening tag. You would do the same thing for turning an image into a link.

Hi, am also stuck whats the solution

You’re going to want to make the image into a link so that, when you move the cursor over the image, the cursor turns into the pointer finger rather than the regular black cursor. Wrap the image into the a element by adding an element. The # is meant to represent whatever you want to link to. In this case, it would be the link. So the final code should look like this:
… Then the rest of the code.
Hope this helps.

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