Learn HTML by Building a Cat Photo App - Step 14

 <p> Click here to view more <a target="_blank" href="https://freecatphotoapp.com"> <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" </a>.</p>  

Test

Sorry, your code does not pass. Don’t give up.

Hint

You should only add one opening anchor (a) tag. Please remove any extras.

can anyone help me? i have no idea what im doing wrong here
i dont have any extra <a> tags??

It helps if you post all of your code, but it looks like you scrambled together the p, a, and img elements.

<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"> <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" </a>.</p>
</main>
  </body>
</html>

Yes, you scrambled together the a, p, and img elements.

You should leave the contents of the p element alone. The challenge wants you to put a new a element around the current img element.

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

Sorry, your code does not pass. Hang in there.

Hint

Your anchor (a) element should have a closing tag. Closing tags have a / just after the < character.

??? still dont get why it isnt working? the image actually works as a link? isnt that the task XD

You still changed the contents of this line. Do not touch this line. Only add an opening a tag before the img element on the next line and add a closing a tag after the img element.

:ok_hand: :+1: :+1: :+1: :+1:

1 Like