Learn HTML by Building a Cat Photo App - Step 17

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

Hi . I am brand new to coding. When I am closing the section 2, it gives me an error saying that your section element should have an opening tag while I have the opening tag but I don’t get the problem.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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>

<section2>
<h3>Some More Cute Cats Photos </h3>
<p> Sleeping Cat 
   Cuddling Cat
   Domestic Cat
   Calico Cat
   Out going Cat
   Very talkative cat </a>
      </p>
      </section2>
    </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/107.0.0.0 Safari/537.36

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

Link to the challenge:

Earlier you created a section element which is seen in the code above.
You must create another section element (not a section2 element).
Reset the code to put it back to its starting point and then simply add a section element (with its opening and closing tag included)

1 Like

Thank you for your kind reply. It helped.

1 Like

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