Learn HTML by Building a Cat Photo App - Step 5

Hi, finding step 5 difficult…instructions: 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.
error saying: Hint
Your main element’s opening tag should be below the body element. You have them in the wrong order.
Your code so far

    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos.</p>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36

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

Link to the challenge:

It looks fine. My suggestion is to reset the code back to start and reads the main tags.
Sometimes an old state is saved in the browser and prevents the code from passing.

(After you click reset, click CTRL-F5 keys together to force a refresh of the browser)

Thanks, still not working sadly… will try resetting other ways and see if it works!

1 Like

Your solution works from my end. Please try one of the following steps to move forward.

Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

1 Like

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