Learn HTML by Building a Cat Photo App - Step 16

Hi I’m stuck on step 16 of html
I managed to make a tag for section but I don’t know how I’m supposed to ‘nest’

and in because they should already be a part of . (They’re under the tag so I imagine that would work but it didnt)
Any tips?

Your code so far

<html>
  <body>

<!-- User Editable Region -->

    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <section>
      <!-- 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>
    </main>
    </section>

<!-- User Editable Region -->

  </body>
</html>

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

Hello.

Check your code. Only your h2, p and a must be inside the section. You close the main before the section, and the h2 is out.

Grets.

2 Likes

try reading the instructions again it tells you to nest your

,

and elements only you almost got it
you just have your sections closing and opening tags in the wrong area

thanks i didnt realise it before

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