I'm having trouble with the closing tag of my Main Element

Tell us what’s happening:
I have no idea what i’m doing wrong here, and this is getting quite frustrating…
It says that my main element’s opening tag should be below the h1 element. I have them in the wrong order.

But i did exactly what its said, I had put the tag after and just below the

Can someone please explain what am i doing wrong here ?

  **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/102.0.5005.61 Safari/537.36

Challenge: Step 5

Link to the challenge:


If this is your current code your main element is still before the h1 element, not after it.

The main element needs to open above the h2 element.

Hope that helps!

As simple as that ! :slight_smile:
It worked, Thank you very much :+1:

1 Like

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