Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:

I have main element’s closing tag below the p element. But it keeps saying it’s in the wrong order.

where am I wrong ?

Your code so far

<html>
  <body>

<!-- User Editable Region -->

  <main>
    <h1>Most important content of the document</h1>
    <p>Some more importnat content. </p> 
    </main>

    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Everyone loves cute cats online!</p>
    

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 5

1 Like

Welcome to the forum @Johanny644

These elements are from the code example.

Please remove them, then place the closing main tag in the appropriate spot.

Happy coding

Everything you type in programming has a specific reason. If something doesn’t work, a good way to figure out why is to ask yourself “what is the reason that this piece of code is here? What is its purpose?”

The question you should ask is, “what does ` do? What should be inside of it and what should be outside of it, and why?”

Think about your web page like a piece of paper. Things like

1 Like