Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:
“Your main element’s opening tag should be below the h1element. You have them in the wrong order.” I’ve tried in various ways, yet it continues to say this

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/75.0.3770.145 Safari/537.36 Vivaldi/2.6.1566.49

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

Link to the challenge:

I tried the program on a different browser and it fixed itself. o7

1 Like

The <h1> element is supposed to be nested under the <main> element. It’s so that your code is a bit more organized into sections.