Learn HTML by Building a Cat Photo App - Step 17

Tell us what’s happening: The second section element should not be nested in the first section element.

Describe your issue in detail here.
its not working

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> </section>
        <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>
      

<!-- 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/120.0.0.0 Safari/537.36 Edg/120.0.0.0

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 17

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Your element should be empty, it should not nest any code.

1 Like

Welcome to the forum @siriatluri2005


      <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> </section>
        <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>

Please move the second opening section tag so that it is placed below the closing section tag shown in the code block.

This way the first section element contents are separated from the new section element.

@stephenmutheu pointed this out before I finished typing.

1 Like

Hello @siriatluri2005 !

Both of the previous posts provide good guidance.

I noticed that one of the section elements closing tag is after the p element closing tag.

I do not believe it is to be there.

As @stephenmutheu , along with @Teller, the new section should come below the closing tag from the first section element.

Suggestion:
Reset the step (this will not affect any previous steps), and enter the section element below the closing section tag of the first section.

I hope this helps you.

Please, if it does help you, check off Solution by @stephenmutheu ?

I believe all of the responses are good guidance, and that was the original one.

Keep up the good progress! :sun_with_face:

1 Like