Learn HTML by Building a Cat Photo App - Step 15

Hey im trying to complete this step - I’ve gotten to this which i think should be correct?
I’d appreciate it if anyone could help me out :slight_smile:

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more cat photos in our gallery.</p>
<a href="https://freecatphotoapp.com">
    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg">
    </a>

<!-- User Editable Region -->

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

Your browser information:

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 15

// running tests Your anchor (

a

) element should have an opening tag. Opening tags have this syntax:

<elementName>

. You are missing a closing (

a

) tag after the image. Your anchor (

a

) element should have a closing tag. Closing tags have a

/

just after the

<

character. You should only add one closing anchor (

a

) tag. Please remove any extras. Your anchor (

a

) element should link to

https://freecatphotoapp.com

. You have either omitted the URL or have a typo. // tests completed // console output [TypeError: Cannot read properties of undefined (reading ‘getAttribute’)]

This is the error code which i get when i try and progress.

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