Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:

I think I have written my code correctly but the error says :
1.Sorry, your code does not pass. You’re getting there.
2. Your anchor (a) element should have an opening tag. Opening tags have this syntax: <elementName>"

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>

<!-- User Editable Region -->

      <!-- TODO: Add link to cat photos -->
     <a href="https://freecatphotoapp.com">
     <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="a photo of a cat."
        </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/129.0.0.0 Safari/537.36 Edg/129.0.0.0

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 15

Hello @Jaack !
Your anchor tag has no problem but your image has. You modified the alt text. Please, do not change what you’re not asked to, you’ll run into more problems. Restore the original text.

Also, you need to close the image tag.

2 Likes

well, I did what you said but still got the same results :smiling_face_with_tear:
I am stuck in this step since yesterday.

I know, that sometimes these lessons can be frustrating. Don’t worry, we’ll work it out.

Can I see the code, instead of a screenshot? It’s easier working with code.

1 Like

Welcome to the forum @Jaack

Here is a comparison of the original code and your code.

The code in blue is the original code, the code in red is your code.
The code in magenta is the overlap.

You appear to have removed the paragraph element.
The tests are checking for two anchor elements. Finding just one, is asking for another.

Please reset the step to restore the original code and try again.

Happy coding

2 Likes

Thank you so much man, I finally completed this step :partying_face:

1 Like

I finally completed this step, Thank you so much for your help!

1 Like