Learn HTML by Building a Cat Photo App - Step 15

am trying to solve the problem but for some reason i cant
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 <a href="https://freecatphotoapp.com" src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."

    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

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

Link to the challenge:

You must understand what it means to turn an element into a link.

The general structure of the code you are going for is:

<a href=“url”><img src=“url”></a>

The img element is given to you already in the code.
So all you have to do is create the anchor element around it as per the structure above.

1 Like

thanks mate
all settled

1 Like