Learn HTML by Building a Cat Photo App - Step 17

Tell us what’s happening:
.
Says that I don’t have a closing anchor tag in so annoyed I don’t understand what I’m doing wrong. I know it’s gonna be something simple …. Help please.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> online!</p>
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
       <a href="https://freecatphotoapp.com">
        <a> <img src="freecatphotoapp.jpg" alt=the cat"> </a>
       
      

    </main>
  </body>
</html>

Your mobile information:

iPhone - iOS18.3.1

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

Link to the challenge:

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

you have two opening tags, do you need both of them?
you need an equal number of opening tags and closing tags

also consider which image you need to turn into a link

Even if I take the tag out it still says I don’t have one I’m so lost on this one.

what code do you have now?

Says I don’t have a closing tag I have tried everything I can I don’t get it.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> online!</p>
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
      <img src="https://freecatphotoapp.com">new cat</a>
      <a href="https://freecatphotoapp.com">
    </main>
  </body>
</html>

Your mobile information:

iPhone - iOS18.3.1

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

Link to the challenge:

Welcome to the forum @Newbiecodar

You a few issues here.

  1. Please remove the second img element.
  2. Please remove the the text new cat
  3. Place the opening anchor tag before the img element

Happy coding

1 Like

Your last anchor element does not have a closing tag. Try closing without giving space.

I figured it out after I posted it I just had the code backwards like you said thanks again.

1 Like