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

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>
    </section>
  </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/102.0.0.0 Safari/537.36

Challenge: Step 16

Link to the challenge:

Well the challenge says that you need to create a new section element BELOW the existing one.

In your code one section element is within another one.

ok this a p element nested inside another p

<p>
  <p></p>
</p>

and this not nested :

<p></p>
<p></p>
1 Like

<<!–

Cat Photos



Click here to view more cat photos.


A cute orange cat lying on its back.


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

first tag
section
content
/section
second below first
section
/section
you have to do this

2 Likes

this was really helpful bro thanks

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