Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Hi! I’m on lesson 15 and I don’t understand where i’m exactly stuck… I’ve tried different combinations and read on the forums and i don’t get where i’m getting stuck. Would gladly appreciate some help and pointers, this is my first time coding! have a nice day!

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
           <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."> <a href="https://freecatphotoapp.com"</a>
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 15

Link to the challenge:

Nest img tag inside anchor tag

this is the img tag

you need to turn it into a link

do this by creating a valid anchor opening tag and placing it on the left hand side of the img tag

and by creating a valid anchor closing tag and placing it on the left hand side.

You can copy the anchor tags from step 10 or 11 if you like
but make sure that you place them in the correct spot and that the href attribute has the expected value.

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