Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
i have been trying this code but i can’t get the solution

Your code so far

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

<!-- User Editable Region -->

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

<!-- User Editable Region -->

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

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

Link to the challenge:

Welcome to the community.
If you remove the extra p element above the link, you should pass to the next step.

Good attempt!

Happy coding!

1 Like

Hello and welcome to the community :smiley:!
This line seems extra too me:

Also you have a typo with your </p> closing tag-its missing a closing dash:

1 Like

Here is a great article from FCC News that explains turning both text and images into links. It has good examples, too.

FCC News Article Turn Image and Text Into Links

Happy coding! :slight_smile:

2 Likes

thank you!it really helped me . i did corrected the typo again but i didn’t get the answer

Did you do like @anon42932716 said and delete the extra line?:

1 Like

It helps if you share your new code every time so those trying to help can see exactly what you are trying

2 Likes

This line was not not closed properly with a ‘>’ at the end of the opening tag, and an at the end of it.

Also, the text within the link looks more like alt text, and is not a valid link.

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