Learn HTML by Building a Cat Photo App - Step 19

Tell us what’s happening:

i have no idea where i use second section element in code

Your code so far

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

<!-- User Editable Region -->

      <section><section>
        <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>
        <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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 19

Welcome to the forum @ayush01672

Try placing the second section opening tag, before the second section closing tag.

At the moment the tags are nested.

<tag>
  <tag>
    other code
  </tag>
</tag>

Happy coding

1 Like

The second section tag should not be nested in the first section tag. Try placing it after the you close the first section tag and your code should run just fine

the answer given by [enochm] work perfectly.

However, this is not the instruction given in the exercice.

However when you try to run the code @ayush01672 provided . The hint provided after the “Sorry, your code does not pass. Keep trying” message is “The second section element should not be nested in the first section element.”

And I think the instruction is still valid " It is time to add a new section. Add a second section element below the existing section element." which means the second section element should be added after the closing tag of the first section element

Hey Buddy, Here Can you check what you have done ?

Listen to put new section You Just need to add it , after the existing one.

<h1></h1>
<h2></h2>

See that’s how I put.

Hope You Understand !!