Not understanding the error in anchor element

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

  **Your code so far**

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <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</p><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
   
  </main>
</body>
</html>
  **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.64 Safari/537.36 Edg/101.0.1210.53

Challenge: Step 14

Link to the challenge:

This is a long line of code so you will have to scroll over to see it all but this is your current code.

    <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</p><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>

The problem you are having is you merged your image in your text anchor element. In this lesson you need to create a new anchor element and assign it the appropriate link as provided in the lesson instructions. I suggest clicking Restart Step at the top center of the page and trying over.

You have the idea right, you just have to create a new anchor element instead of using the existing one.

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