How do i turn image into link

** Tells what’s happening:**
Turn the image into a link by surrounding it with necessary element tags. Use as the anchor’s href attribute value.

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

Challenge: Step 14

Link to the challenge:

The same way you created a link for the text “cat photos” in the <p> element above the image, you wrap the link tags around it.

A cute orange cat lying on its back. anything wrong here. Saays i should open a element with a tag.

You need to wrap your code in triple backticks so we can see it.

On a line by itself, type three backticks. Immediately under that line paste your code. On a new line below your code type three more backticks. The backtick key on my keyboard is in the upper left above the Tab key and below Esc.

This is the solution. Takes me 15 min of thoughts. LOLOLOLOL


thank you, that helped me

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