Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:
I keep getting an error message saying that the main element’s closing tag needs to be below the p element.

  **Your code so far**
<html>
<body>
  <h1><main>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/104.0.5112.102 Safari/537.36 Edg/104.0.1293.63

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

Link to the challenge:

well, that’s confusing message

the problem here is that main opening tag is placed incorrectly.
You placed it inside h1 element
You need to place it after h1 element

That worked. Thank you so much!

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