I don't know why they are telling me this: Your section element should have a closing tag. Closing tags have a / just after the < character

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <section>
     <section>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
      <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> 
      </section>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Step 16

Link to the challenge:

Remember, an element has both an opening and closing tag (except for a few self-closing elements). So when you add a new element after an existing element that means to add the new element after the existing element’s closing tag.

1 Like

tenes un <section> sin cerrar
fijate que debajo de main, abriste un section, después otro dentro del mismo, y solo cerraste uno, puede ser?

You have 3 section tags. 2 at the top and one with a closing slash at the end.
Remove one of the tags at the top and you’re good to go.

    <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
    <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>
  </section>
  <section>
    </section>-->

you have to add the new section tag BELOW the first section tag not inside the first section tag i know i did the exact thing lol

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