Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:

I’m getting an error in my code, I actually think I’m doing all the ways right, but I’m missing something, I think anyone can help?

Your code so far

<html>
  <body>

<!-- User Editable Region -->

  
    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>See more cat photos in our gallery.</p>
    <main>
      <h1>Most important content of the document</h1>
      <p>Some more important content...</p>
      </main>

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 5

Part of the problem is that the first main element is out of position. The code below shows the starting point for the exercise.

<main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
    <p>See more cat photos in our gallery.</p>
    </main>

In this set you need to move the p element inward so that it is properly nested inside the main tags. Do that and move the closing main tag to its proper position and you’ve completed this step.

1 Like

Hey Buddy , Here You no need to add another h1, h2, and p tag, instead of it kindly do wrap you existed h1, h2, comment line and p tag.

<main>
<h1></h1>
<p></p>
</main>

Hope You Understand !!!