Learn HTML by Building a Cat Photo App - Step 16

I’m supposed to create a section element within the main tags but i keep getting feedback saying that my h1 is not supposed to be in the section element. I am confused because is the html tag not the h1? What am I doing wrong here?

Your code so far


<!-- User Editable Region -->

<html>
  <body>
  <main>
  <section>
      <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>
</main>


<!-- User Editable Region -->

  </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/116.0.0.0 Safari/537.36

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

Link to the challenge:

You did almost right but this step is telling you to
wrap your h2, comment and p tag.

Not h1.

Kindly remove starting section element and wrap only h2 and p tag.

Hope you understand.

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