Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:

Hello, I was starting programing in HTML and in the Step 5 I don’t know why he says that the code is bad. The step 5 says: “Identify the main section of this page by adding a <main> opening tag before the h1 element, and a </main> closing tag after the p element.” But then it says: "Sorry, your code does not pass. Don’t give up.

Your main element’s opening tag should be below the body element’s opening tag. You have them in the wrong order."

But I put ‘main’ element’s opening tag below the ‘body’ but he continues saying that is wrong. Can you help me please ?

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 cat photos in our gallery.</p>
    </main>

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 5

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Welcome to FFC forum. Your code is correct. Maybe there’s your browser extension issue. Clear browser cache or Change your browser and try again.
@erik.sev10

1 Like

Thanks, it works know in another browser.

2 Likes

Your welcome. Very good, keep it up :+1:

1 Like

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