Learn HTML by Building a Cat Photo App - Step 15

Does anyone else have the same problem? I use the anchor tags correctly but they don’t let me go, I get the message “our anchor (a) element should have an opening tag. Opening tags have this syntax: .” am i doing something wrong?

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more cat photos in our gallery.</p>

<!-- User Editable Region -->

    <a><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </a>

<!-- User Editable Region -->

    </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/113.0.0.0 Safari/537.36

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

Link to the challenge:

The code you have is not correct for this step. Your p element (above) should have been updated in an earlier step to include a link.
Have you already completed Steps 12-14 previously?

If you want to pass this step, you’re best to reset the lesson and then try to complete the step again.

You will also need to include an href attribute in your opening anchor tag (as per the instructions).

To my understanding, your code is missing the anchor’s href attribute value. Try adding < a href=“https://freecatphotoapp.com” > (without spaces) before the img src. Remember to also close the anchor at the end of the code :slight_smile:

Hope this helps!

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