How do i turn the image into a link

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

  **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." href="" >
  **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.63 Safari/537.36

Challenge: Step 14

Link to the challenge:

hi the hyperlink should be in

<a> element

First thing to do would be click Restart Step

then … i have p element that i want to turn into a link.
<p> Learn More </p>

now you can nest it inside an a element like this
<a href=""> <p> Learn More </p> </a>

or you can nest the content of your p element inside an a element like this
<p> <a href=""> Learn More </a> </p>

now since img element doesn’t have a content (the image source is an attribute) so nest the element itself in a element

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