Learn HTML by Building a Cat Photo App - Step 17

Tell us what’s happening:
I don´t understand what they freeCodeCamp want tell me with this

The second section element should not be nested in the first section element.

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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36

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

Link to the challenge:

‘nested inside element’ means ‘located between element’s opening and closing tags’
So if I have some abstract element, for example:

<element>
</element>

and I put anything inside it

<element>
  <otherElement>
  </otherElement>
</element>

that would be otherElement nested inside element

In the challenge they want you to avoid this kind of scenario.

But if you see my code, I am doing this that you said no?

yes, you have one section element inside another section element

Hi @javierveramaestre ,
" Add a second section element below the existing section element" means that,
You have to add a new section (<section>...</section>) AFTER the CLOSING tag of the existing </section>.
No need of adding NESTING sections.
It sounds a bit confusing btw!

Thank you so much, now I understood

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