Learn HTML by Building a Cat Photo App - Step 16

Tell us what’s happening:

I’ve tried everything i could think of but i still keep getting the existing h2, comment, p element, and anchor (a) element should be between the opening and closing tags of the section element.

Your code so far

<html>
  <body>

<!-- User Editable Region -->

    <main>
      <h1>CatPhotoApp</h1>

      <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>
      <h2>cat photos</h2>
      <p>seemore<a target="_blank" href="https://freecatphotoapp.com".>catphotos</a>in our gallery.</p> 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>
</main>

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 16

hi there, please click the Reset button to restore the original code for this step as you added some new lines of code that were not requested.

Once you’ve reset, you will need to add a new section element.
This means you will need to create a section opening tag <section> and a closing tag </section>
You will need to place these above and below (respectively) the lines of code that the step mentioned are part of the section element.
So that means, the opening section tag should go one line above the h2 element.
While the closing tag should go one line below the anchor element.
Once you’ve placed the opening section tag and the closing section tag properly, this will effectively ‘nest’ the h2 and the p and the a elements inside your new section element. This is what nesting means.

1 Like