Changing image to 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 href="" >
   <img src="" alt="A cute orange cat lying on its back."></a></p>
  **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:

I don’t know what is wrong with my code i have added img in between the opening and closing tags but still code keeps showing me that my anchor element should have opening tag.

This step requires you to add a new anchor element around the image and not to use the existing anchor element for your image, I recommend you to click on Restart Step and add the anchor element around the image element

1 Like

Thanks a lot! So we can have different anchor elements with same href values?

1 Like

Yes, why not if the lesson is asking you to have two same href’s?

For the step 16 it asks for adding second section in code but it keeps showing me that there should be an opening tag of element or the second is not nested in first section.
Could you please help resolve.

You can create a new topic with your code. Step 16 requires you to create another section element after your existing</section>

but the other section will be nested in the first one and it shows error for the second nested in first

I will be easier to help with your code.

Your section should not be nested in the other section.

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