Challenge 14 help

I am putting <a opening at the start of the image because I want to enclose the image- but my closing of I feel is in the wrong spot so I keep changing where it goes but with no help from the hint (never really helps much) what do I do?

  **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>
    <a href="" <img src=""</a> alt="A cute orange cat lying on its back.">
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15

Challenge: Step 14

Link to the challenge:


So when you made the text ‘cat photos’ into a link you did it like this,

<p>Click here to view more <a target="_blank" href="">cat photos</a>.</p>

So, to make this work you need to write out the anchor element and put the img code where the text ‘cat photos’ was in the above example, you will turn the image into a link.

Here is an example of how this can be written. Apply this to your own code.

<a href=“”><img src=“example.jpg” alt=“example image”></a>

Hope that helps!

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