Build a Cat Photo App - Step 5

Tell us what’s happening:

My code is correct with the attached code: < html >

Most important content of the document

Some more important content…

but the system keeps saying "Your main element's closing tag should be below the p element. You have them in the wrong order."

Your code so far


<!-- User Editable Region -->

< html >
<body>
<main>
<h1>Most important content of the document</h1>
<p>Some more important content…</p>
</main>
</body>
</html>

<!-- User Editable Region -->

Your browser information:

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

Challenge Information:

Build a Cat Photo App - Step 5

Reset the lesson and put the main tag the same place you did previously

Please it is still showing the same message after resetting and typing the code. kindly find the code: “

Most important content of the document

Some more important content...

” . Kindly find the message the system is showing “Your `main` element's closing tag should be below the `p` element. You have them in the wrong order”

Read the instructions and do what they say.

Identify the main section of this page by adding a <main> opening tag before the h1 element, and a </main> closing tag after the p element.

Don’t just copy the example code. That’s just an example to see how the syntax works.

I didn’t copy it, I typed and I have reset the test many times and retyped the code. It is still showing the same message: “Your main element’s closing tag should be below the p element. You have them in the wrong order.”

It does not matter if you use copy/paste or type the exact same thing. That is not the solution to this challenge.

Follow these instructions:

Identify the main section of this page by adding a <main> opening tag before the h1 element, and a </main> closing tag after the p element.

Don’t add the text from the example.

I have done this multiple times, it is showing the same message. Adding the text or not adding the text, it is still showing the same system message. Try it from your end, you will see the system message it keeps displaying

Where in the instructions does it say to add the text “Most important content of the document” ?

It didn’t state this instruction. It only gave an example of this “Most important content of the document”. In the example it was placed under the “main” section element in the “h1” element

Exactly.

That is an example of how to use the <main> tag. That text is dummy text used in the example. It’s not to go in your code.

Try following the instructions again

Identify the main section of this page by adding a <main> opening tag before the h1 element, and a </main> closing tag after the p element.

Thanks for the assistance. I finally did it. Kindly find the code: removed by moderator

Congratulations on solving the challenge! You should be proud of your achievement…we are! But we are removing your working solution, so it is not available to others who have not yet done the work to get there. Again, congrats!