Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:
i cant seem to get past this step. i have tried puting the main element as per the instructions several times but all in vain. please help

Your code so far

<html>
  <body>
  
    <h1> CatPhotoApp </h1>
    <main>
    <h2> Cat Photos </h2>
    <!-- TODO: Add link to cat photos -->

    <p> Click here to view more cat photos. </p>
    </main>

  </body>
</html>

Your browser information:

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

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

Link to the challenge:

please re-read this specific part of the instructions

Identify the main section of this page by adding a <main> opening tag before the h1 element

Notice the word -before-

You need to add this above the h1 tag.

Tell us what’s happening:
ive put the main element before the h1 element but it still says that ive failed

Your code so far

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

Your browser information:

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

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

Link to the challenge:

hi there, please don’t open a new topic requesting help when you already have one opened in the forum.
I’ve merged the duplicates.

the main tags are in the correct location but you have made other changes to the code so that is why the test will not pass.
Click the reset step button (which looks like an arrow turning) and then try again but this time, do not modify anything. Just add your two tags in the correct lines.

Your code is correct and working fine in my browser. Try running it in incognito mode or some other browser.

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