Compiler problem in Basic HTML and HTML5: Introduction to HTML5 Elements

This is my code link and I think this is 100% correct but the test is showing this error:-
// running test
Make sure each of your p elements has a closing tag.
The closing main tag should come after the second closing paragraph tag.
// tests completed

Please help me with this,
Thank you

the closing

tag has a capitalized P

Thank you very much man it worked

Why do we need that?