Learn HTML by Building a Cat Photo App - Step 17

the task is It is time to add a new section. Add a second section element below the existing section element.
i dont know why it isn’t working, the tip told me not to nest the elements

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>

<!-- User Editable Region -->

      <section>
        <section>

        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</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>

<!-- User Editable Region -->

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14989.107.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

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

Link to the challenge:

Welcome to the forum.
It appears the second section has been placed ‘nested’ within the first one. It needs to be added after the closing for the first section element.
I hope this helps you.
Happy coding! :slight_smile:

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