Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Hi guys, i just started coding, i need help with step 15. Thanks
Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

     <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>

<!-- 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/116.0.0.0 Safari/537.36 Edg/116.0.1938.62

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

Link to the challenge:

1 Like

Hello and welcome to FCC Forum, a community of people helping each other!

It appears the closing > bracket for the anchor has been pushed to the end of the image.

If you remove it from the back of the image and place it behind the quotes in the anchor link, you will pass.

Happy coding! :slight_smile:

3 Likes

Hello !

This is how you turn any element into a link:

<a href="**(Put the link right here)**"> **( The element you wanna turn into a link should be right here)** </a>

Example:
<a href="myhouse"><p>I love my house</p></a>

The opening and closing tag of the element you wanna turn into a link should always be inside the tags of the anchor a element.

Now here:

Your img element is inside the anchor’s opening tag. Do as @anon42932716 said and it should be alright. :slightly_smiling_face:

3 Likes

Thanks it was very helpful!
I got it right this time:
<a href=“https://freecatphotoapp.com

A cute orange cat lying on its back.

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