Website is showing that </main> is in wrong order and i have tried all possible order help

Website is showing that is in wrong order and i have tried all possible order help

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

Challenge: Step 5

Link to the challenge:

Hi,
It looks like you’ve misunderstood what elements are.

<p>This is an element. It has an opening and closing tag</p>

<p> is the opening tag.

</p> Is the closing tag.

So to put the main in the right place, it needs to be before the h1’s opening tag.

This link describes some html standards that may help you in the future.

as you said i tried (most probaly i am still doing mistakes) i check the website before posting this and after your reply too. but can you tell me solution please <3

No, the forum discourages giving people solutions as it doesn’t mean understanding why they work. (From experience, in the long term it makes learning coding harder.)
The mods will also remove solutions from the forum.

Please show me your current code and I will check it and let you know what needs changing. I can’t give you the solution but I can help you to find it. :slight_smile:

If you don’t know how, this gif shows how to format html code to make it readable in the forum.

1 Like
[quote="EllaGriff, post:4, topic:524146, full:true"]
No, the forum discourages giving people solutions as it doesn’t mean understanding why they work. (From experience, in the long term it makes learning coding harder.)
The mods will also remove solutions from the forum.

Please show me your current code and I will check it and let you know what needs changing. I can’t give you the solution but I can help you to find it. :slight_smile: 

If you don’t know how, this gif shows how to format html code to make it readable in the forum.
https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif
[/quote]

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

Hello,
Welcome to The Forums :wave:


The opening <main> tag should be after the closing h1 tag.

You have opened the main element after the opening h1 tag instead.

The instruction asks you to add the opening <main> tag after the h1 element. Which means that the <main> should be after the closing </h1> tag.

1 Like

THANKSSSSSSSSSS THANK YOUUUUUUU and also @Griff fro giving you precious time thank you <3

1 Like

No problem!
I do advise reading up on html coding on W3schools and on other websites like Mozilla. Especially the basics of formatting it as that will make the coming lessons far easier.

To learn it is important to research as much as possible.
:slight_smile:

your a cool man (vritual bro punch) thank you <3i will remeber every last wrod of yours

1 Like

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