Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:

I dont know what happening its just saying- Your main element’s opening tag should be below the body element’s opening tag. You have them in the wrong order.

Your code so far

<html>
  <body>

<!-- User Editable Region -->

  
    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Everyone loves cute cats online!</p>
    <body>
   <main>
  <h1>Cats are beatiful</h1>
  <p>They have different species</p>
</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/131.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 5

You have two opening body tags, when you should only have one. Remove the second opening body tag, which is under the p element. Also, welcome to the forum :wave: Glad to have you.

Edit: Also, I think the lesson wants you to put the opening main tag directly below the opening body tag, on the line before the h1 element.

Yes, welcome here!

You also added some extra code.

Best reset the lesson and only wrap the existing code in the main tags.

1 Like