Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:

Your anchor (a) element should have an opening tag. Opening tags have this syntax: .
Could you help me? what’s wrong in my code.

Your code so far


<!-- User Editable Region -->

<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>
  <a href="https://freecatphotoapp.com">
      <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>

<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 15

Please click the reset button first.
Then type the new anchor opening tag on the left side of the img element. And create the anchor closing tag on the right side of the img element.

Hi there, welcome to fcc community.

You shouldn’t edit the paragraph above. Just keep it as it is:

<p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

and only add the link around the image.

Reset the step and try again and you’ll pass this step.

1 Like